Skip to content

dtekcth/mat-chalmers

Repository files navigation

mat-chalmers

Build Status

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. To generate css, you can use the Tailwinds 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

About

Lunch menus on and around Chalmers campus, built in Haskell

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 13