You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ayush Mukherjee 5243ff5d32 | 2 years ago | |
---|---|---|
src | 2 years ago | |
test | 2 years ago | |
.dockerignore | 2 years ago | |
.env.example | 2 years ago | |
.eslintrc.js | 2 years ago | |
.gitignore | 2 years ago | |
.prettierrc | 2 years ago | |
API.md | 2 years ago | |
Dockerfile | 2 years ago | |
README.md | 2 years ago | |
docker-compose.yml | 2 years ago | |
nest-cli.json | 2 years ago | |
package.json | 2 years ago | |
pnpm-lock.yaml | 2 years ago | |
tsconfig.build.json | 2 years ago | |
tsconfig.json | 2 years ago |
README.md
Mx Leaderboard API
Basic leaderboard api using next js, mariadb and typescript.
For API design, refer to API.md
.
Architecture
Nest Js is a "skeleton" MVC framework with the application being divided into modules. This project contains 3 modules namely, auth, user, and rank, for authentication, user model related, and rank model related APIs respectively. Validation of incoming data is enabled globally.
Each module has a model service, and a controller that handles routes with some having model definitions as well.
This project has a very basic architecure of the following:
user ---> this api service <---> mariadb
Development
- Copy
.env.example
to.env
, and add relevant information pnpm install
pnpm start:dev
Deployment
- Copy
.env.example
to.env
, and add relevant information pnpm run i
pnpm run build
pnpm prune --production
node dist/main.js --host 0.0.0.0