A non-monolithic approach to a highly scalable architecture based on NodeJS, TypeScript, MongoDB and Docker.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
You need to have MongoDB installed in your local environment Install MongoDB
If you want to build a docker image you need a local Docker environment also Install Docker
A step by step series of examples that tell you how to get a development env running
Clone the project
git clone https://github.com/nyandrianinamamy/nodejs-microservice.git
cd nodejs-microservice
Create environment files
# .env, for common environment variable
APP_ID=nodejs-microservice
# .env.test, for test environment variable
LOG_LEVEL=debug
# .env.production, for production environment variable
LOG_LEVEL=production
Install dependencies
npm install
Run
npm run dev
Test if everything's okay
curl localhost:4004/_health
Should return the running time
Unit testing
npm run test
- Ny Andrianina Mamy R. - Initial work - nyandrianinamamy
- Ny Hasinavalona R. - Initial work - nyhasina
This project is licensed under the BSD License - see the LICENSE.md file for details