Govtech GDS OneCV assessment

Local Setup

Database

  1. Download Postgres SQL

  2. Set up the database by running the initdb script with your own postgres username

psql -h localhost -U your_db_user -f initdb.sql

Go Backend

  1. Install Go

  2. Set environment variables for your database credentials. Replace your_db_user and your_db_password with your actual postgres user information

export DB_USER=your_db_user
export DB_PASSWORD=your_db_password
export DB_NAME=school
  1. Run the application
go run main.go