The microservice Assembleia-api was developed for NestJs studies in NodeJs to understand how the framework works. In this example, we have the ability to create an agenda for voting, estimate the time, vote, and display the voting results. Swagger has also been added so that we can easily identify the involved endpoints. Note: The endpoints of the People entity were created just to get an idea of how to implement a CRUD; they are not actually part of the assembly since the purpose is for programming language studies.
Having downloaded the project from https://github.com/Rafaellcx/assembleia, access the project's main folder via the terminal and execute the following commands:
docker network create net-assembleia
docker run --name assembleia-mysql -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=assembleia -p 3306:3306 --network net-assembleia -d mysql:8.0.32
docker build --tag assembleia-api .
docker run --name assembleia-api -p 3000:3000 --network net-assembleia -d assembleia-api
Now we can use the application through the address "http://localhost:3000/api"