An awesome microservice app using NestJS
Table of Contents
There are many resource to learn about microservice but in this project I'm trying to make a simple microservice with NestJS, so I hope you can understand how the microservice work, especially in NestJS
This project is built under these awesome libraries
This section is how you setup the app on your own project locally. To get a local copy up and running follow these simple example steps.
Install all dependencies in every services.
- SMTP mail credentials
- Docker and Docker Compose
-
Install all dependencies inside every service folders
npm install
-
Get a free credentials account for mail service at https://mailtrap.io
-
Copy the credentials and put it in
/mail/.env
file# Mailer MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME= MAIL_PASSWORD= MAIL_FROM_ADDRESS="<[email protected]>" MAIL_FROM_NAME=${APP_NAME}
-
Start all service with docker compose
docker-compose up
To access the api, open
- GET [get all users]
- POST [create user]
Distributed under the MIT License. See LICENSE.txt
for more information.
Nasrul - @nasrulfuad88 - [email protected]
Project Link: Mini Microservice
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!