This is a challenge by Coodesh 🚀
The Fitness Foot API provides details about fitness food products. Every day at midnight, a cron job runs to import updates of products from Open Food Facts. 📆🛒
- NestJS
- TypeScript
- Jest
- Prisma
- PostgreSQL
- Docker
To install and set up the API, follow these steps:
- Set up the environment variables by creating a
.env
file in the root directory. You can refer to the.env.example
file for the required variables. - Run the Docker containers using the command
docker compose up -d
. 🐳
To use the API, follow these steps:
- Access the API documentation by visiting
http://localhost:3000/api
to explore the available routes and their details. 📚🔍 - For private routes, you need to include the
x-api-key
header in your requests. Make sure to pass the API key to access the protected routes. 🔒