To start the Food-Delivery API, you will need to follow these steps:
-
Clone the repository to your local machine.
git clone https://github.com/ElSierra/Quick-chop-api.git
-
Install the dependencies using npm.
cd Quick-chop-api npm install
-
Set up the environmental variables in a .env file in the root directory of the project.
DATABASE_URL=<your-mongodb-url> SECRET=<your-secret-key> PORT=<your-port-number> WEBSITE_URL=<your-website-url> EMAIL=<your-email> PASSWORD=<your-password> CLIENT_SECRET=<your-google-client-secret> CLIENT_ID=<your-google-client-id> REFRESH_TOKEN=<your-google-refresh-token> REDIS_HOST=<your-redis-host> REDIS_PASSWORD=<your-redis-password> SPACES_ENDPOINT=<your-aws-spaces-endpoint> SPACES_KEY=<your-aws-spaces-key> SPACES_SECRET=<your-aws-spaces-secret> SPACES_NAME=<your-aws-spaces-name>
-
Start the server using npm
prisma generate npm run start