This server is built to provide a robust user experience. users can find tech gadgets like smartphones, smartwatches, laptops, tablets, computers, etc. Some features of this website are pagination, searching, categorization, and sorting of products.
Make sure you have the following installed on your machine:
- Git
- Node.js
- Open the terminal and run.
git clone https://github.com/mhmitas/scic-jobtask-server.git - Create a .env file and add these variables.
to generate the Access token secret, open your terminal, write node, and press enter. then run this command
DB_PASSWORD= DB_USER= ACCESS_TOKE_SECRET=
('crypto').randomBytes(64).toString('hex')
- Go to MongoDB and take your MongoDB connection URI, then go index.js file and add this URI.
- run
npm iand runnode index.js