Create a PostgreSQL database for local development.
CREATE DATABASE livereview;You will need a DATABASE_URL for connecting the application to your local PostgreSQL.
Example:
DATABASE_URL=postgres://postgres:password@localhost:5432/livereview?sslmode=disablepostgres→ database usernamepassword→ database passwordlocalhost:5432→ local PostgreSQL host and portlivereview→ database namesslmode=disable→ disables SSL for local development
The setup process requires the GitHub CLI for downloading secrets.
Install it from:
Verify installation:
gh --versionYou may also need to authenticate:
gh auth loginRun:
make download-secretsThis command downloads the required secrets and generates the .env file.
Open the generated .env file.
Find the DATABASE_URL entry and replace it with your local PostgreSQL connection string.
Example:
DATABASE_URL=postgres://postgres:password@localhost:5432/livereview?sslmode=disableMake sure this points to the database you created in Step 2.
Run:
make river-installThis installs the required River dependencies.
Run:
make river-migrateThis sets up River-related database tables.
Install it from:
https://github.com/amacneil/dbmate
Verify installation:
dbmate --versionApply all database migrations:
dbmate upThis will create the required database schema.
make build-with-uihttps://github.com/d1vbyz3r0/typed
go install github.com/d1vbyz3r0/typed/cmd/typed@latest
go get github.com/d1vbyz3r0/typed@latestFrom the project root directory:
make runThis starts the LiveReview backend server.
Open a new terminal:
cd ui
make runThis starts the frontend UI locally.
Run either of these:
make niceurlmake niceurl2make niceurl3This exposes your local environment through:
manual-talent.apps.hexmos.commanual-talent2.apps.hexmos.commanual-talent3.apps.hexmos.com