Skip to content

Instantly share code, notes, and snippets.

@montasim
Last active June 27, 2024 17:35
Show Gist options
  • Save montasim/80055952df83b281dfd5e49edc7a0995 to your computer and use it in GitHub Desktop.
Save montasim/80055952df83b281dfd5e49edc7a0995 to your computer and use it in GitHub Desktop.

Project Name

Project Sample Gif


Requirements to Run the Project


🚀 Instructions

  1. Download Necessary Tools:

  2. 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
      

🛠️ Data Configuration

  1. 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.
  2. Import MongoDB Database:

    1. Go to the MongoDB executables directory.
    2. Move the .csv files from the "extra" folder to the MongoDB folder.
    3. 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
        

Running the Project

  • For the frontend:
    yarn start
    
  • For the backend:
    cd server/src
    node index.js
    

📖 Author

Moon
M♢NTΛSIM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment