- Introduction π
- Demo app π½οΈπ
- Getting Started β¨
- Tests π§ͺβοΈ
- Docker π
- Technologies/Tools πͺ
πThis project is a full-stack web application built with NestJS and ReactJS for the CookUnity challenge! π
- The application has been deployed in the following sites:
Backend: https://cookunity-app-production.up.railway.app/api (Swagger doc).
Frontend: https://cookunity-app.vercel.app/.
To use the application, you can register as a new user or use the seed user provided below. To create the seeds users, navigate to the api folder and run the following command:
cd api
yarn nestjs-command create:user
[
{
"name": "Donato de Santis",
"email": "[email protected]",
"role": "CHEF",
"password": "chef",
"image": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRpYeiftn_mBq8eomPq1_TB4Eb0MiPKkpEHIhW9obEvrVZO0vlU"
},
{
"name": "Christophe Krywonis",
"email": "[email protected]",
"role": "CHEF",
"password": "chef",
"image": "https://aptus.com.ar/wp-content/uploads/2018/10/christophe-masterchef3.jpg"
},
{
"name": "Ivan Greve",
"email": "[email protected]",
"role": "CUSTOMER",
"password": "1234",
"image": "https://ivangreve.com/profile.jpg"
}
]
To run test for the aplications:
Backend: yarn test
Frontend: yarn test
To run the application using Docker, follow these steps:
- Go to the root folder of the project.
- Run the following command to start all the services:
docker-compose up
- If you want to run only one service, run the following command, replacing
<serviceName>
with the name of the service you want to start:
docker-compose up <serviceName>
Example:
- DataBase service:
docker-compose up mongodb_service
- Engine service:
docker-compose up engine_service
- Frontend service:
docker-compose up frontend_service