cd server
npm install
cd client
npm install
- 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
-
Create
.env.local
file in server -
Add paypal clientID sandbox in
.env.local
REACT_APP_SANDBOX_PAYPAL='YOUR-PAYPAL-SANDBOX-APP-ID'
// runs on http://localhost:3003
npm run dev
// runs on http://localhost:3000
npm start
Hien Tran