This repo is used only to test Deno and PostgreSQL features.
To run the project you have to install Deno here
In this project we are using postgres to save and retrieve data, so you have two options to choose:
Here you can run it with Docker and Docker compose (installation links: Docker and Docker Compose). Once you have it installed you can go to root folder and run:
> docker-compose -f docker/docker-compose.yaml up
If you have an existing PostgreSQL server you can define the connections values in: deno-rest-api/db/database.js
After installations steps you will be able to run the project located on root folder (The param -A is only for development and it allows every permission), with the following command:
> deno run -A index.ts
Project based on: Dev.to website