alpinn / car-management-dashboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Challenge Chapter 4 - Car Management Dasboard

This project is about implemetation of Database, Orm and Restful API.

Database Diagram

DB Diagram

Library

  1. cloudinary
  2. cookie-parser
  3. cors
  4. dotenv
  5. ejs
  6. express
  7. multer
  8. nodemon
  9. pg
  10. sequelize

How To Run

  1. Install Library
npm i
  1. Create Database
npm run db:create
  1. Migrating the model
npm run db:migrate
  1. Using seeder
npm run db:seed
  1. Running Project on development
npm run dev

EndPoint

A. Restful API

  1. Initial API | GET: http://{{host}}/
  2. Get All Car | GET: http://{{host}}/cars
  3. Upload A Car | POST: http://{{host}}/cars
  4. Get Car by Id | GET: http://{{host}}/cars/:id
  5. Delete A Car | DELETE: http://{{host}}/cars/:id
  6. Update A Car | PUT: http://{{host}}/cars/:id

About


Languages

Language:EJS 37.7%Language:JavaScript 36.3%Language:CSS 26.0%