FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

formsiiit/server at develop · OSDG-IIITH/formsiiit · GitHub

Latest commit

 

History

History

Forms Portal Backend

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.fish

If 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