/REST-API-WITH-NODE

Rest Api with Node.js mongodb and express.js.

Primary LanguageJavaScript

REST API

Technology use

  • Node.js
  • Express.js
  • Mongodb
  • Mongoose
  • Dotenv
  • Mongodb atlas
  • Thunder-client
  • Postman
  • Cyclic

link

https://zany-gray-lion-garb.cyclic.app

All products data are show. like

{
"Products": [
{
"_id": "63b9acef67efac07cf5e9d03",
"name": "iphone10",
"price": 1154,
"featured": false,
"rating": 4,
"createAt": "2023-01-07T17:33:34.794Z",
"company": "apple",
"__v": 0
},
{
"_id": "63b9acef67efac07cf5e9d02",
"name": "iphone",
"price": 154,
"featured": false,
"rating": 4,
"createAt": "2023-01-07T17:33:34.794Z",
"company": "apple",
"__v": 0
},
{
"_id": "63b9acef67efac07cf5e9d07",
"name": "Dell Series",
"price": 1054,
"featured": true,
"rating": 4,
"createAt": "2023-01-07T17:33:34.794Z",
"company": "dell",
"__v": 0
},
{
"_id": "63b9acef67efac07cf5e9d06",
"name": "Nokia 420",
"price": 1954,
"featured": true,
"rating": 4,
"createAt": "2023-01-07T17:33:34.794Z",
"company": "nokia",
"__v": 0
},
{
"_id": "63b9acef67efac07cf5e9d08",
"name": "galaxy w20",
"price": 1654,
"featured": true,
"rating": 4,
"createAt": "2023-01-07T17:33:34.794Z",
"company": "samsung",
"__v": 0
}
],
"nbHits": 5
}

Functionality

  1. Sorting by name
  2. Sorting by price
  3. Searching by anything like name price featured etc.
  4. Pagination
  5. Registere
  6. Login