Skip to content

abhinav-gif/Memory-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Steps to Run Locally

1 - git clone this repository

2 - Run Frontend

  1. navigate to frontend folder
  2. run npm install in terminal This command installs all the necessary modules for frontend.
  3. npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.

3 - Run Backend

  1. navigate to backend folder
  2. run npm install in terminal This command installs all the necessary modules for backend.
  3. nodemon server.js

Listens to the server at http://localhost:5000.

Nodemon restarts the server when you make changes.

4 - Configuring Required ApiEndpoint and MongoDb connection string

  1. Navigate to frontend/src/App.jsx
  2. Configure the ApiEndpoint variable (place your server url http://localhost:5000 in this Example)
  3. Navigate to backend/server.js
  4. place your mongoDb connection string to connect to your Database.