npm i
to install all the dependencies- Don't forget to make your own
.env
based onexample.env
- When its finish:
npm run build:watch
to compile all these typescript thingsnpm run dev
to run the server ⚡
knex migrate:latest
to run the migration's fileknex seed:run
to fill data on database
For now only one table is available:
URI | Description |
---|---|
/ |
index (landing page) |
/cars |
Find Available Car |
Method | URI | Description |
---|---|---|
GET | /api/v1/cars/ |
Display all cars data from database |
GET | /api/v1/cars/:id |
Display specific car data from database by ID |
POST | /api/v1/cars/ |
Create car data to database |
UPDATE | /api/v1/cars/:id |
Update specific car data from database by ID |
DELETE | /api/v1/cars/:id |
Delete specific car data from database by ID |
URI | Description |
---|---|
/docs |
Documentation with Swagger OpenAPI |
If you want to try and input data or update data, you can use data from this
- Frontend
- HTML
- CSS
- Javascript
- Bootstrap
- Backend
- typescript
- nodejs, expressjs
- Database
- postgre SQL