This is the codebase of Risedle API.
Risedle API is structured based on the flow of HTTP request:
- src/server.ts is the entry point
- src/routers maps http request to controllers
- src/controllers takes http request from routers, compose services call, then return http response
- src/services main business logic is here. Logic that encapsulates business requirements, calls models, calls external APIs
The models
is provided by @risedle/database
package, it handles schema and
the migrations.
Risedle API is automatically deployed via Github Actions and can be accessed via the following URL:
- Production https://api.risedle.exchange
- Staging https://apiedge.risedle.exchange
Run the following command to start development server:
pnpm dev
The API server will be available at http://localhost:3000.
If you edit the source code, the nodemon
will trigger build and restart your
server.