Skip to content

burakilk/deno-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno REST API with PostgreSQL

  • Create a simple rest api.
  • Expose routes for **GET, POST ** methods.
  • If you want to connect to the database, you can change the related config from config/config.ts

API

  • GET - /api/v1/users
  • POST - /api/v1//users (form data)
  • GET - /api/v1/users/:id

Installation & Run

Step 1: Install

curl -fsSL https://deno.land/x/install/install.sh | sh

Step 2: Run

deno run --allow-env --allow-net server.ts

About

Simple Rest Api build with Deno and PostgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published