Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tranductung07012004/SOPE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

@copyright by Sope 2024

  1. Clone the repository from github.
  2. cd backend ==> to go to backend folder, then "npm i" to install necessary packages.
  3. cd frontend ==> to go to frontend folder, then "yarn" to install necessary packages.
  4. cd socket ==> to go to socket folder, then "npm i" to install necessary packages.
  5. fill in the .env file in config in backend folder:
    • 1, PORT = 8000
    • 2, JWT_SECRET_KEY = "" => get from the secure password generator web
    • 3, SMTP_HOST = smtp.gmail.com
    • 4, SMTP_PORT = 465
    • 5, DB_URL => go to mongodb, create a database and get the api key "MongoDB for VS Code", remember to change password in the api key.
    • 6, SMTP_PASSWORD, get from email with 2 layers of protection.
    • 7, SMTP_MAIL, get the email that has SMTP_PASSWORD
    • 8, STRIPE_API_KEY, get from the stripe website, publishable key.
    • 9, STRIPE_SECRET_KEY, get from the stripe website, secret key.
  6. change origin in app.js, change to "http://localhost:3000/"
  7. change server = "http://localhost:8000/api/v2" in server.js, backend_url = "http://localhost:8000/" in frontend.
  8. change activationUrl = "http://localhost:3000/activation/${activationToken}" in user.js in controller in backend.
  9. change activationUrl = "http://localhost:3000/seller/activation/${activationToken}" in shop.js in controller in backend.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages