To run this project in your local machine:
-
Step 1: new terminal
cd .\Backend\
- Run
npm install
to install the dependencies - Run
npm start
ornpm run server
to serve the app on your local machine.
-
Step 2: new terminal
cd .\Frontend\
- Run
npm install
to install the dependencies - Run
npm start
ornpm run server
to serve the app on your local machine.
!!!Nếu npm start
2 folder Fontend và Backend xảy ra lỗi có dòng chữ màu xanh lá ở dưới màn hình terminal kiểu: {opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ] } thì hãy truy cập HERE và làm theo hướng dẫn,đại loại là thay đổi thuộc tính của "start" và "build" trong 2 file package.json tron 2 folder Fontend và Backend,sau đó npm start
lại
- Step 3: new terminal
cd .\Server\
- Run
npm install
to install the dependencies - Run
npm run start
ornpm run server
to serve the app on your local machine.
!!! Lúc này sẽ báo lỗi vì trong folder server chưa có các thuộc tính trong file .env chưa cài đặt:
PORT = 5000
NODE_ENV = development
JWT_SECRET = ...
PAYPAL_CLIENT_ID = ...
MONGO_URL = dòng này nhớ setpassword và tên project, ở và sau mongodb.net/...tên project lấy url ở
CLOUD_NAME =
CLOUD_API_KEY =
CLOUD_API_SECRET =