| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory contains the source code for the backend of the Forms Portal.
The backend is written in go, using the echo server framework and postgres as the database service.
This project uses mise for managing tools. For running the database locally, docker is used.
Before starting the server, copy the .env.example file to .env, and generate the SQL binding code by running:
cp .env.example .env sqlc generate
The server can be started by running:
go run .The database can be setup by running:
./database/scripts/create.fish
./database/scripts/setup.fishIf you are not using the fish shell, view the scripts and run the commands yourself using your shell's syntax.
To open up a psql shell, run:
docker exec -it fdb psql -U field --dbname forms| Back | FazBrowse Home | New Git URL |