Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 968 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 968 Bytes

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