Skip to content

API code sample using nodeJs | typescript | mongo atlas | S.OL.I.D principle | express | docker compose | use test case

License

Notifications You must be signed in to change notification settings

romykundal/api-typescript-nodejs

Repository files navigation

API architecture code sample using nodeJs | typescript | mongo atlas | S.OL.I.D principle | express | docker compose | use test case

The API by itself doesn't do anything fancy, it's just a user CRUD with authentication capabilities. Maybe we can transform this into something useful, a more advanced example, just open an issue and let's discuss the future of the repo.

Development

We use node version 14.9.0

nvm install 14.9.0
nvm use 14.9.0

The first time, you will need to run

npm install

Then just start the server with

npm run start

Docker is setup

run the command to run docker container:

docker-compose up

Roadmap

  • API Validation layer (Celebrate+Joi)
  • Unit tests examples
  • The logging 'layer'
  • Add agenda dashboard
  • Continuous integration with CircleCI 😍
  • The docker compose setup to run prod and developoment too
  • Deploys script and docs for AWS Elastic Beanstalk and Heroku
  • Integration test with newman 😉
  • Instructions on typescript debugging with VSCode

About

API code sample using nodeJs | typescript | mongo atlas | S.OL.I.D principle | express | docker compose | use test case

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published