https://github.com/dtekcth/mat-chalmers
Lunch menus on and around Chalmers campus, built in Haskell
https://github.com/dtekcth/mat-chalmers
chalmers graphql haskell lunch-menus rest
Last synced: 5 months ago
JSON representation
Lunch menus on and around Chalmers campus, built in Haskell
- Host: GitHub
- URL: https://github.com/dtekcth/mat-chalmers
- Owner: dtekcth
- License: mit
- Created: 2014-11-06T14:24:44.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2026-02-06T12:37:25.000Z (6 months ago)
- Last Synced: 2026-02-06T19:58:28.971Z (6 months ago)
- Topics: chalmers, graphql, haskell, lunch-menus, rest
- Language: HTML
- Homepage: http://mat.dtek.se/
- Size: 509 KB
- Stars: 8
- Watchers: 3
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mat-chalmers
[](https://travis-ci.org/dtekcth/mat-chalmers)
Lunch menus on Chalmers in Gothenburg. Issues and pull requests welcome.
## Hacking
```
git clone https://github.com/dtekcth/mat-chalmers.git
cd mat-chalmers
cabal update
cabal build # (or cabal run)
```
If you're using [NixOS] (or just Nix package manager), use the
following instructions to get a development environment running:
```
nix develop # Download dependencies and start a dev-shell with everything setup
```
Or, to build everything:
```
nix build # (or nix run)
```
Pro-tip, to get shorter build times, consider using [Cachix] and use
the `jassob` or `pingu` cache:
```
cachix use jassob # Only needed once
cachix use pingu # Probably more up to date as of 5/6-24
```
### Updating the view?
Currently, the css framework used is [TailwindCSS](https://tailwindcss.com).
To generate css, you can use the [Tailwinds cli](https://tailwindcss.com/blog/standalone-cli) program to generate the new css by running `tailwindcss --content src/View.hs --output static/style.css --minify`.
Worth noting is that the css is embedded in the binary, and changes to it aren't well captured by cabal, so `cabal clean && cabal run` or `just up` that fixes the css file and then runs the program.
When running `docker compose up --build`, the css file will be generated by it self.
## Credits
Favicon made by Freepik from www.flaticon.com is licensed by CC BY 3.0
[nixos]: https://nixos.org/
[cachix]: https://docs.cachix.org/installation