This guide will walk you through setting up and running the Local food expiry reminder API locally on your machine.
Before running the project, ensure you have the following installed:
- Node.js (version 16 or higher)
- npm (comes with Node.js)
You can check if you have Node.js and npm installed by running the following commands:
node -v
npm -v
- Clone the repository
git clone https://github.com/NayanCod/Quiz-App.git
- Navigate to the backend Directory
cd backend
- Setup the Environment variables Create a .env file in the backend directory:
touch .env
Add the following environment variables to the .env file:
PORT=
MONGO_URL=
JWT_SECRET=
- Install Dependencies
npm install
If you encounter any errors during the installation, use the following command to install the dependencies with legacy peer dependencies:
npm install --legacy-peer-deps
- Start the development Server
npm run dev
This will Run your backend server locally at http://localhost:8080