A starter project with Deno, Oak and PostgreSQL
.
├── README.md
├── src
│ ├── helpers
│ ├── modules
│ ├── routes
├── app.ts
├── .env.example
├── .gitignore
└── db.sql
- Import file db.sql to your database
- Copy file .env.example to .env and change with your configuration
- Run deno run --allow-env --allow-net --allow-read app.ts
- GET /api/v1/users fetch data users
- GET /api/v1/users/:id fetch data user by id
- POST /api/v1/users create data user
- PATCH /api/v1/users/:id update data user by id
- DELETE /api/v1/users/:id delete data user by id