-
Navigate to the backend directory using your terminal:
cd backend
-
Install all dependencies using npm:
npm install
-
Run the backend server:
- For development mode:
npm run server
- Alternatively, you can use Node.js:
node index.js
Make sure to create a .env
file in the backend directory with the following environment variables:
US
: Username for the databasePASS
: Password for the databaseHOST
: Host for the databaseDATABASE
: Database nameJWT_CODE
: Secret key for JSON Web Token (JWT)
-
Navigate to the backend directory using your terminal:
cd backend
-
Install all dependencies using npm:
npm install
-
Run the frontend development server:
npm start
- Make sure you have Node.js and npm installed on your machine.
- Before running the backend, ensure you have a MySQL database set up with the provided environment variables.
- Before running the frontend, ensure you've started the backend server.
Happy cooking with the Recipe App!