Skip to content

hugoblanc/deno-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deno Api: Alosaur + TypeORM

This repository provide a good starting point to setup a deno REST API using Alosaur and TypeORM.

I used this fork of typeorm: https://github.com/denolib/typeorm

Requirements

A postgres database running with the following properties: (MySql not currently supported)

  • host: 172.17.0.2
  • username: postgres
  • password: free
  • database's name: postgres

You have to modify src/loader/init-typeorm.ts if theses values don't corresponds to yours.

Run

Use the deno runner:

deno run --unstable --allow-net --config ./tsconfig.json src/main.ts

We don't need the --allow-read flag if we explicitly specify entities in the init-typeorm.ts file.

Usage

Check the result : http://localhost:8000/users

License

MIT

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published