An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# mat-chalmers

[![Build Status](https://travis-ci.org/dtekcth/mat-chalmers.svg?branch=master)](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