-
Download Necessary Tools:
- Make sure you have the latest versions of NodeJS, npm, and yarn installed.
- Download the MongoDB terminal tools package.
- Download and install MongoDB Community.
-
Download and Install Project Dependencies:
-
For the frontend:
yarn install
-
For the backend:
cd server yarn install
-
Start the backend to generate the database
cd server/src node index.js
-
-
Create the
.env
File:- Create a
.env
file based on the template in.env-copy
for both the backend and frontend. - Include the URLs for the backend API and MongoDB connection.
- Create a
-
Import MongoDB Database:
- Go to the MongoDB executables directory.
- Move the
.csv
files from the "extra" folder to the MongoDB folder. - Run the following commands to import the collections:
- Restaurants:
mongoimport /db:sabor-rapido /collection:restaurants /file:restaurantes.csv
- Users:
mongoimport /db:sabor-rapido /collection:users /file:users.csv
- Restaurants:
- For the frontend:
yarn start
- For the backend:
cd server/src node index.js
Moon |