sprechstunden-go/README.md

20 lines
670 B
Markdown
Raw Normal View History

# Sprechstundentool der FS Mathematik TU Darmstadt
## Developing
Make sure you have [Go installed](https://go.dev/doc/install),
e.g. by executing `go version`.
Initialize the database. For developing, we recommend using sqlite:
2023-06-08 23:04:11 +00:00
user@host:path/to/repo$ sqlite3 officeHours.db -init officeHoursSQLite.sql
2024-05-12 16:38:14 +00:00
sqlite> .read dummydata/rooms.sql
sqlite> .read dummydata/summerCourses.sql
Now start the development webserver, note that you need to manually
restart it to code changes take effect.
go run .
The website is exposed at <http://localhost:8080>, this (and some other options,
e.g. where mails are sent to) can be adjusted in `config/config.json`.