If you haver Docker configured in your local machine, use the following command to build the containers:
docker-compose up -d
Otherwise, to build the services in your local machine, you may run each one e a separate terminal window, using the following commands: (* Remember to configure .env files using .env-example located in each service's root)
cd services/{service name}
npm install
npm run dev
After that, you may access each service with the following addresses:
localhost:8081/auth
localhost:8082/users
localhost:8083/products
You may follow the same steps mentioned above to run the documentation server
cd services/docs
npm install
npm run dev
And access the docs page at:
localhost:8084/docs
NodeJS
- express - Web framework for Node.js
- nodemon - Monitor for changes in Node.js applications and automatically restart the server
- express-validator - An express.js middleware for validator.js
- body-parser - Node.js body parsing middleware
- mongoose - MongoDB object modeling for Node.js
- eslint - Find and fix problems in your JavaScript code
- jsonwebtoken - JsonWebToken implementation for Node.js
- bcrypt - bcrypt for Node.js
- axios - Promise based HTTP client for the browser and Node.js
- dotenv - Loads environment variables from .env for Node.js projects
- express-openapi - An OpenAPI framework for express.js
- swagger-ui-express - Middleware to serve the Swagger UI bound to your Swagger document
- js-yaml - JavaScript YAML parser and dumper