To provide platform for beginner to understand working of APIs.
Includes API Calling, Express as intermediator, Connecting MongoDB(NoSQL) with Node and Performing CRUD operations.
Have adapted methodology to process algorithm using Async/Await
.
Basic Call to Generate and download Spreadsheets as well as CSVs using ExcelJS.
- Node JS
npm
(Node Package Manager) - Mostly gets installed at the time of nodejs installationgit
(Repository Manager)
$ sudo apt-get install git
- Clone the Repo using
$ git clone https://github.com/hardik2792/node-api-boiler.git
- Open Terminal, change the path to cloned project.
- Execute
$ npm install
- After successfully execution of above steps, then execute the final step to Start the server
$ npm start
-
Open your browser and paste the below Link
localhost:4000/testConnection
-
Explore other endpoints using Postman collection
$ cd docs/node-api-boiler.postman_collection.json
End points | Type | Description |
---|---|---|
1. /testConnection |
GET | To verify Server working |
2. /todo/create |
POST | To create todo task |
3. /todo/get |
GET | To get todo list |
4. /todo/update/:id |
PUT | To update todo |
5. /todo/delete/:id |
DELETE | To add todo task |
5. /file/generate/:type |
GET | To generate XLSX/CSV file and Download |
5. /file/generate/ |
GET | To add todo task |