- clone repo.
- open database/db.ts(denodb.ts for lib deno_db) change <MONGO_URL> to connect your own mongo db.
- run
deno run --allow-net --allow-write --allow-read --allow-plugin --unstable index.ts
access the following endpoint on http://localhost:7000
METHOD | URL | Description |
---|---|---|
GET | /api/cars | Return all cars |
POST | /api/cars | Create a car |
PUT | /api/cars/:id | Update car |
DELETE | /api/cars/:id | Delete car |