Skip to content

pxwannn/BookStore-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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="AIzaSyCWmEI5uBbqRzmOQe126GHZmFSuOtE9edE"
VITE_Auth_Domain="book-store-mern-appp.firebaseapp.com"
VITE_PROJECT_ID="book-store-mern-appp"
VITE_STORAGE_BUCKET="book-store-mern-appp.firebasestorage.app"
VITE_MESSAGING_SENDERID= "492127548277"
VITE_APPID="1:492127548277:web:4c5ca79da5cf39115ed93c"
VITE_API_URL=http://localhost:5000
  • 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:pqam0Mwv3Vwv8Off@cluster0.qc3bq.mongodb.net/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

 
 
 

Contributors

Languages