To build my solution, I have choosen the nodejs runtime environment as I am a fullStack developer JS, and it's progressive and scalable framework NestJS
with integrated Modules.
- The application will runing in the port:
3000
. - I Have created A url global prefix :
/api
. - Also, I have used, a versioning system to run many version on the application, so currently The application will have two versions v1 and v2 :
/v1
or/v2
- => the path to get access to the app is
http://localhost:3000/api/v1/
. - => Example for pinging use the url
http://localhost:3000/api/v1/ping
. - => get access the openAPI swagger Interface:
http://localhost:3000/swagger
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
To Learn More about NestJS:
A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.