Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Latest commit

 

History

History
40 lines (28 loc) · 1023 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 1023 Bytes

programme.lv

programme.lv is a modern latvian programming education platform.

The frontend is served by a stateless next.js service. The backend is written in go and consists mainly of the controller and the scheduler. The controller routes incoming requests and communicates with the postgres database. The scheduler publishes jobs to workers.

Communication between the frontend and backend is done via REST API. Communication between the scheduler and the worker is done via gRPC and defined in the protofiles.

Live updates to frontend users will be supplied using websockets.

starting reverse proxy

sudo caddy run --config ./caddy.conf --adapter caddyfile

starting frontend

cd website
yarn install
yarn run dev

starting backend

Besides having go installed an .env file should be located in the backend folder and contain db_conn_string.

cd backend
go run scripts/migration/migrate.go
go run .

start worker

cd backend
cd worker
go run .