Skip to content

henriquemoreiraa/nestjs-microservices-sa

Repository files navigation

A simple backend with microservice architecture where users can upload their attempts for specific songs

🚧 Under development... 🚧


API EndpointsPrerequisitesRunning the ProjectEnvTechnologiesAuthor

🪛 Prerequisites to run the project

Before starting, you will need to have the following tools installed on your machine: Git, Node.js, Docker.

💻 Running the Project

# Clone this repository

$ git clone <henriquemoreiraa/nestjs-microservices-sa>

# Access project folder in terminal/cmd

$ cd nestjs-microservices-sa

# Install the dependencies

$ docker-compose up --build

⚙️ .env enviroment variables

# For each project

MONGODB_URI
RABBIT_MQ_URI
RABBIT_MQ_AUTH_QUEUE

# ./attempt/.env

PORT
RABBIT_MQ_ATTEMPT_QUEUE
RABBIT_MQ_AUTH_QUEUE

# ./auth/.env

PORT
JWT_SECRET

🛠 Technologies

The following tools were used in building the project:


📍 API Endpoints

Here you can list the main routes of your API, and what are their expected request bodies. ​

route description
POST /attempts create new attempt request details
GET /attempts retrieve all attempts response details
GET /attempts/:id retrieve one attempt response details

POST /attempts

REQUEST

{
  "musicName": "abc",
  // "audioUrl": developing,
}

GET /attempts

RESPONSE

[
  {
    "musicName": "abc",
    // "audioUrl": developing,
  }
]

GET /attempt/:id

RESPONSE

{
  "musicName": "abc",
  // "audioUrl": developing,
}

😎 Author

Henrique Moreira

Made with ❤️ by Henrique Moreira 👋🏽 Get in touch!

Twitter Badge Linkedin Badge Gmail Badge

About

A microservice application using Nest.js and RabbitMQ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published