This project demonstrates an advanced Node.js setup with multiple microservices and RabbitMQ for message queuing.
- Node.js (v18 or higher)
- pnpm
- Docker
- Docker Compose
git clone https://github.com/virmerson/course-enrolment-api.git
cd course-enrolment-apipnpm install
pnpm run build
pnpm start
docker-compose up --build
Once the Docker containers are up and running, you can access the application and RabbitMQ management inte
git clone https://github.com/your-username/course-api.git
cd course-apipnpm installpnpm run buildpnpm startTo run the project with Docker, use the following command:
docker-compose up --buildOnce the Docker containers are up and running, you can access the application and RabbitMQ management interface:
- Application:
http://localhost:3000 - RabbitMQ Management Interface:
http://localhost:15672/
To access the RabbitMQ management interface, open your browser and navigate to http://localhost:15672/. Use the following credentials to log in:
- Username: guest
- Password: guest
You can send a POST request to enroll a user in a course using curl:
curl -X POST http://localhost:3000/enroll -H "Content-Type: application/json" -d '{"userId": "123", "courseId": "456"}'This project is developed and maintained by High Tech Cursos.
This project is licensed under the MIT License.
By following these steps, you will successfully rename your repository to `course-enrolment-api` and update all relevant references.