Skip to content

mdalmamunit427/build-full-stack-book-store-mern-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

build-full-stack-book-store-mern-app

full-stack-book-store-mern-project

How to run this project:

For Frontend

Follow the below steps to run the project:

  • Firstly clone or unzip the project folder.
  • Go to the frontend directory by using the following command cd frontend.
    • create a .env.local file in the backend root directory as the same level where the package.json is located and keep the following environment variables there:
>>> Stepup firebase app and configure the environment

VITE_API_KEY="AIzaSyCXvDIC4MPrkaMdeg_O2iij88wLpfj3qBA"
VITE_Auth_Domain="book-store-mern-app.firebaseapp.com"
VITE_PROJECT_ID="book-store-mern-app"
VITE_STORAGE_BUCKET="book-store-mern-app.appspot.com"
VITE_MESSAGING_SENDERID= "205632822247"
VITE_APPID="1:205632822247:web:b0db0ec66bf6de0bbb3b42"
  • Then run npm install commend to install node dependencies.
  • Finally, to run the project, use npm run dev command.

For Backend

Follow the below steps to run the project:

  • Firstly clone or unzip the project folder.
  • Go to the backend directory by using the following command cd backend.
  • Then run npm install commend to install node dependencies.
  • create a .env file in the backend root directory as the same level where the package.json is located and keep the following environment variables there:
DB_URL = "mongodb+srv://helpyourassistant:[email protected]/book-store?retryWrites=true&w=majority&appName=Cluster0"

JWT_SECRET_KEY = 'bc992a20cb6706f741433686be814e3df45e57ea1c2fc85f9dbb0ef7df12308a669bfa7c976368ff32e32f6541480ce9ec1b122242f9b1257ab669026aeaf16'

Note: Please setup mongodb and change the MongoDB url and set your jwt secret key above.
  • Finally, to run the project, use npm run start:dev command.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages