AshishKohad27 / coinTab_BackEnd

Home Page:https://coin-tab-back-end.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coinTab_BackEnd

Build REST API's with

  • NodeJs
  • ExpressJs

Data Stored in MongoDB


Steps of starting Backend

  1. Run npm run start on terminal
  2. You will get URL like this http://localhost:7879 server running on port number 7879

Methods

1. Get Data

getUrl :- http://localhost:7879/data/filter

Data can able to filter , sorted, paginated with this methods

  • We can use filter, sort, pagination, search together
http://localhost:7879/data/filter?gender=&page=1&limit=60&name=f&ageL=80&ageR=70&country=Ireland&sortName=desc

list of filter

  1. Filter by Age
  • range ageL : above that limit
  • range ageR : below that limit
  • both should use together
getUrl?ageR=50&ageL=70;
  1. Filter by Country
getUrl?country=Ireland
  1. Filter by Gender gender= male/female/""
getUrl?gender=male

Sort

  1. Sort Data base on Nama
  • Ascending order (asc)
  • Descending order (desc)
getUrl?sortName=desc

Pagination

  1. page (1 by default)
  2. limit (10 by default)
  • Prev Button
  • Next Button
  • Land any Page directly by clicking on particular page Number
getUrl?page=1&limit=10

Search Functionality

  • Search any user by typing character in query
  getUrl?name="as"

2. Add Data

  • Adding data done with this api
https://randomuser.me/
  • Bulk Data added in the data base in the range of 50 to 100 every time data added it give diff. data length in the range of 50 to 100.

3. Delete Data

About

https://coin-tab-back-end.vercel.app


Languages

Language:JavaScript 100.0%