Structure of an API on Data Platform
Rework pending, no delivery date. The Front App SDK (ReactJS) and the Front API SDK (NodeJS) are both being replaced. This page documents the current release, remains accurate, and is maintained until the replacement ships. Code written against it keeps working.
Here is the content of the source code of an API. Note that the SDK is available in NodeJS.
The core files of the API
app.js: central point of the API and will serve to launch all the rest. Here you can directly access the ExpressJS instance (via the app variable)forepaas.json: describes the list of extensions that make up your APIforepaas/: contains the extensions installed in your APIpackage.json: contains the NodeJS dependencies associated with your APIyarn.lock: we use yarn as package manager, it generates a fileyarn.lockto lock dependencies associated with your API.
Launcher utilities
- Docker
Dockerfile.dev: a Docker description of the context in which the API runs.dev.sh: a script to launch the docker environment quickly.
- NodeJS
run.sh: a script to launch your API directly
Git
.gitignore: defines the Git files and folder that will not be commited (in case you use git).
License
These two files mention the Data Platform license associated with this SDK.
LICENSE.mdLICENSE.txt
Go further
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for a custom analysis of your project.
Ask questions, give your feedback and interact directly with the team building the Data Platform on the dedicated Discord channel.
If you need support with your OVHcloud services, create a request in our Help Centre.
Join our community of users.

