Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shappy0/csv_file_read
https://github.com/shappy0/csv_file_read
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/shappy0/csv_file_read
- Owner: SHAPPY0
- Created: 2019-07-20T10:48:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T11:46:26.000Z (about 2 years ago)
- Last Synced: 2023-10-11T10:19:11.760Z (about 1 year ago)
- Language: JavaScript
- Size: 441 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Note: Before run this app please make sure MongoDB server is running.
1. Clone this repo and then open CMD and change directory to root folder and run ```'npm install'``` to download dependencies.
2. run ```'node index.js'``` to start the node server
3. after start server open postman or any other rest api test tool
4. To read and save data in mongodb use below api
```
URL: http://localhost:8080/api/readCsv
METHOD: GET
```5. User Registration
```
URL: http://localhost:8080/api/user/register
METHOD: POST
REQUEST:
{
"userid":"test",
"password":"test"
}
```6. User login
```
URL: http://localhost:8080/api/user/login
METHOD: POST
REQUEST:{
"userid":"test",
"password":"test"
}
```7. Fetch Records based on paginations
```
URL: http://localhost:8080/api/fetchRows/:skip/:limit
METHOD:GET
REQUEST HEADERS:{
authorization: "Bearer "
}
```8. Fetch records with filters
```
URL : http://localhost:8080/api/fetchRows/:skip/:limit?country=:country&®ion=:region
METHOD:GET
REQUEST HEADERS:{
authorization: "Bearer "
}
```