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
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.
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 theinit-typeorm.ts
file.
Check the result : http://localhost:8000/users