Make sure you have Docker and Docker Compose installed on your system.
- Clone the repository to your local machine.
- Navigate to the project root directory.
Run the following command to start all the services:
docker-compose up --build
This command will build and start the following services:
- MongoDB
- Backend API (NestJS)
- Frontend (React)
- Admin Panel (React)
Once the services are running, you can verify them by accessing the following URLs in your browser:
- Frontend: http://localhost:3000
- Admin Panel: http://localhost:3001
- Backend API: http://localhost:3003
After all services are running, you need to create a user. Run the following curl
command to create a user, replacing username
and password
with your desired credentials:
curl --location 'http://localhost:3003/user/create' \
--header 'Content-Type: application/json' \
--data '{
"username": "your-username",
"password": "your-password"
}'
Replace "your-username"
and "your-password"
with the username and password you want to use.
curl --location 'http://localhost:3003/user/create' \
--header 'Content-Type: application/json' \
--data '{
"username": "you",
"password": "admin"
}'
- The MongoDB service is configured with the following credentials:
- Username:
root
- Password:
password
- Username: