- Clone the repository
- open
mongodb.tsfile and changeconst MONGO_URL = 'mongodb://localhost:27017'to connect to your mongodb database - Start the server by running
deno run --allow-net --allow-write --allow-read --allow-plugin --unstable server.ts
You can access the following endpoints on http://localhost:8000
| METHOD | URL | Description |
|---|---|---|
| GET | /notes | Return all notes |
| GET | /notes/:id | Return single note |
| POST | /notes | Create a note |
| PUT | /notes/:id | Update note |
| DELETE | /notes/:id | Delete note |