Skip to content

TheklaTr/bookaholic-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

BOOKAHOLIC WEB SHOP

Install dependencies

For server

   cd server
   npm install

For client

   cd client
   npm install

Project Implementation

Connect to server

  • Create .env file in server
  • Add to .env modify your information:
   # MONGODB
   MONGODB_URL=YOUR_MONGODB_URL

   # Cloudinary
   CLOUD_API_KEY=YOUR_CLOUD_API_KEY
   CLOUD_API_SECRET=YOUR_CLOUD_API_SECRET
   CLOUD_NAME=YOUR_CLOUD_NAME

   # Token Authentication
   ACCESS_TOKEN_SECRET=YOUR_ACCESS_TOKEN_SECRET
   REFRESH_TOKEN_SECRET=YOUR_REFRESH_TOKEN_SECRET

Connect to PayPal

  • Create .env.local file in server

  • Add paypal clientID sandbox in .env.local

  REACT_APP_SANDBOX_PAYPAL='YOUR-PAYPAL-SANDBOX-APP-ID'

Running Project

Server

   // runs on http://localhost:3003
   npm run dev

Client

   // runs on http://localhost:3000
   npm start

Deployment

Demo link

Author

Hien Tran

User interface

Homepage: homepage

Admin interface

Start Page: startpage