An API that returns vehicle models from a database
Uses: Node.js | Express | Sequelize | postgreSQL | Axios
Completed : Database seeded with all models manufactured and sold by Honda in the USA.
- Node.js : A back-end JavaScript runtime environment
- Sequelize : A promise-based Node.js ORM
- postgreSQL : A relational database
Data sourced from the NHTSA Product Information Catalog Vehicle Listing.
- Install dependencies:
npm install
- Create an .env file with the following key/value pairs:
DB_DEV, DB_DEV_USERNAME, DB_DEV_PASSWORD, DB_DEV_HOST
- Create vehicle table in your database
npx sequelize-cli db:migrate
- Seed Database
npx sequelize-cli db:seed:all
- Start development server:
npm run devstart
Route setup at: /api/v1/vehicles/
Insomnia collection file can be found in the api_test
folder