-
Download Postgres SQL
-
Set up the database by running the initdb script with your own postgres
username
psql -h localhost -U your_db_user -f initdb.sql
-
Install Go
-
Set environment variables for your database credentials. Replace
your_db_user
andyour_db_password
with your actual postgres user information
export DB_USER=your_db_user
export DB_PASSWORD=your_db_password
export DB_NAME=school
- Run the application
go run main.go