Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1010 Bytes

README.md

File metadata and controls

39 lines (34 loc) · 1010 Bytes

auctionappAPI

Setting up the app locally

Prerequisites

  • NodeJS v16.x
  • MongoDB v4.x
  • nodemon npm module.
  • Cloudinary account for uploading images.

Next Steps

  1. Clone the repository
  2. Install the dependencies
npm install
  1. Run the app in devlopment environment:
  • Go to configs folder, cd configs
  • Create a dev.env file, touch dev.env
  • Add following environment variables to the file:
NODE_ENV=Development
JWT_SECRET=<jwt-secret-of-your-choice>
JWT_EXP=7d
MONGODB_URI=mongodb://localhost:27017/auctionAPI
CLOUDINARY_CLOUD_NAME=<your-cloudinary-cloud-name>
CLOUDINARY_KEY=<your-cloudinary-key>
CLOUDINARY_SECRET=<your-cloudinary-secret>
  1. Finally start the app
npm run devstart

Contributing

Connect with us on Discord