Skip to content

ndphii/golden_time_website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Steps to run this project in your local machine

To run this project in your local machine:

  • Step 1: new terminal

    • cd .\Backend\
    • Run npm install to install the dependencies
    • Run npm start or npm 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 or npm 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 or npm run server to serve the app on your local machine.

setup .env in server folder

!!! 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 =

  • Link cài mongodb :HERE
  • Link cài paypal develop:HERE
  • Link cài cloudinary :HERE