Skip to content

faerulsalamun/Deno-Oak-PostgreSQL-Rest-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno Rest API

A starter project with Deno, Oak and PostgreSQL

Structure

.
├── README.md
├── src
│   ├── helpers
│   ├── modules
│   ├── routes
├── app.ts
├── .env.example
├── .gitignore
└── db.sql

How To Run

  1. Import file db.sql to your database
  2. Copy file .env.example to .env and change with your configuration
  3. Run deno run --allow-env --allow-net --allow-read app.ts

Endpoints

  1. GET /api/v1/users fetch data users
  2. GET /api/v1/users/:id fetch data user by id
  3. POST /api/v1/users create data user
  4. PATCH /api/v1/users/:id update data user by id
  5. DELETE /api/v1/users/:id delete data user by id

Releases

No releases published

Packages

No packages published