This project is a CRUD of car object using Node.JS, Typescript, Express, Typeorm. For tests, Mocha and Chai.
Path: http://localhost:3333
All routes are detailed with success calls at docs folder, and there is, also, a json file exported from Insomnia Rest with the routes
Install packages: npm i
Run application: npm start
npm run test
It returns a coverage report in HTML format at folder coverage.
npm run coverage
Configuration
All configuration can be found at ormconfig.json, it was made using PostgreSQL
Tables
The table schema is available at migrations folder: src/config/database/migrations
To create the tables at SQL DataBase, run:
npm run typeorm migration:run
Lucas M Gomes
[email protected]