Skip to content

gsjoy24/second-dream-gadgets-server

Repository files navigation

Instructions on how to run the application locally 📝


NODE_ENV=development
PORT=3000
DATABASE_URL=''
BCRYPT_SALT_ROUND=12
JWT_ACCESS_TOKEN=''
JWT_ACCESS_EXPIRES_IN=7d
SUPER_ADMIN_EMAIL=superAdmin@gmail.com
SUPER_ADMIN_PASSWORD=superAdmin0

  • 4️⃣ Open the command prompt on the project path or terminal on the vs code by pressing Ctrl + `
  • 5️⃣ Run the command 'npm i' or 'npm install' to install all the necessary dependencies.
  • 6️⃣ To run the server on http://localhost:3000, run the command 'npm run start:dev'. if the server is running, you will see the code bellow on your machine.

// on terminal
the server is running on port 3000

// on http://localhost:3000/
  {
    success: true,
    message: 'Server is running!',
  }

  • 7️⃣ To run the production version, run the command 'npm run build' to build the the project. After complete the build process, run 'npm run start:prod' to run the build or production version on the localhost.

This server is deployed on vercel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published