For development, you will only need Node.js and a node global package, NPM, installed in your environement.
- Extract the files in a directory
$ cd ev-charging-station
$ npm install
- This will add the default data to database
$ npm start
$ npm run start:prod
- Node.js
- Express.js
- Sequelize
- Sqlite3 database
BASE URL : http://localhost:3000
- Returns all the entries in the database
- Returns the entry having requested id if the entry exists, otherwise returns a response saying cannot find requested id
- Creates and adds new entry to the database with the given details
- Updates the entry if the id exists, otherwise returns a response saying cannot find requested id
- Deletes the entry if the id exists, otherwise returns a response saying id does not exist
- Show atmost 10 entires
- limit value can be any integer
param values
- station_name
- station_pricing
- station_address
- station_id
sort values
- asc
- desc
ev-charging-station
|------- app
| |----- controllers
| | |------ station.controller.js
| |----- models
| | |---- index.js
| | |---- station.model.js
| |----- routes
| | |---- station.routes.js
|------- node_modules
|------- database.db
|------- package-lock.json
|------- package.json
|------- README.md
|------- server.js