- Clone the repository to your local.
- Download and install Node.js + npm if you don't have it installed: https://kinsta.com/blog/how-to-install-node-js/
- Install backend packages using the following commands:
cd nodejs
npm ci
- Install frontend packages using the following commands:
cd frontend
npm ci
- Create environment variables file in backend using the following command:
cd nodejs
touch .env
- Initialize the .env file with following variables:
PORT=3000
DB_HOST=localhost
DB_USER_ID= `YOUR_DATABASE_USER_ID (Defaults to root)`
DB_USER_PASSWORD= `YOUR_DATABASE_PASSWORD`
DB_NAME=cookzilla
JWT_SECRET= `YOUR_ENCRYPTION_KEY (COULD BE ANY RANDOM STRING)`
- Start the Server:
cd nodejs
npm start
- Open a separate terminal and start the frontend:
cd frontend
npm start
- Open browser and navigate to http://localhost:8081