Skip to content

yammmt/shokuzai

Repository files navigation

shokuzai

Rust

Expiry date list of my food

index image

Usage

First, you have to install SQLite. According to Rocket repository, for example:

  • OS X: brew install sqlite
  • Debian/Ubuntu: apt-get install libsqlite3-dev

Then, clone this repository and run Rust program. If you don't have nightly Rust, please install it with rustup install nightly.

git clone https://github.com/yammmt/shokuzai.git
cd shokuzai
cargo run # or `cargo run --release`

You can access your site by accessing http://localhost:8000.

CSS

If you want to update CSS file, see the following process.

  1. Make sure that you can use Sass from the command line.
  2. Clone submodule repository by git submodule update --init --recursive.
  3. Move to static directory.
  4. Update static/mystyles.scss file.
  5. Generate a new static/css/mystyles.css file by sass --sourcemap=none mystyles.scss:css/mystyles.css --style compressed.

For more Sass information for Bulma, visit the documentation in Bulma.

Links