/truck-api

REST API with Node.js and PostgreSQL

Primary LanguageJavaScript

Node.js API

Used Techs

  • Node.js
  • PostgreSQL
  • Postman
  • MVC Yapısı
  • Express Framework
  • Nodemon
  • Dotenv

Run Project

npm install
npm start

Runs the app in the development mode. Open http://localhost:3000 to view it in your browser.


Postman Requests

  • Parent root -> /vehicle
  • Get -> /vehicle_list
  • Post-> /vehicle_add
  • Patch-> /vehicle_update/:id
  • Delete-> /vehicle_delete/:id

  • Parent root -> /device
  • Get -> /device_list
  • Post-> /device_add
  • Patch-> /device_update/:id
  • Delete-> /device_delete/:id

  • Parent root -> /device_type
  • Get -> /type_list
  • Delete-> /device_delete/:id

  • Parent root -> /log_temperature
  • Get -> /temp_list
  • Post-> /temp_add

  • Parent root -> /log_location
  • Get -> /gps_list
  • Post-> /gps_add