Skip to content

foltik/lsd

Repository files navigation

lightandsound.design

Coming to you live.

Setup

Install a rust toolchain with rustup.rs:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo --version
rustc --version

Clone the repo:

git clone https://github.com/foltik/lsd
cd lsd

Create a .env file with DATABASE_URL=sqlite://db.sqlite

Initialize dev database:

cargo install sqlx-cli --no-default-features --features sqlite
cargo sqlx database setup

To auto rebuild CSS and live-reload changes to your browser, use the watch npm script:

npm install
npm run watch

To auto recompile and restart the backend when you make changes, use cargo-watch:

cargo install cargo-watch
cargo watch -x 'run config/dev.toml' -w src -w frontend/templates

Use mailtutan for local testing of email functionality:

cargo install mailtutan
mailtutan

Workflow

  • Make commits in a separate branch, and open a PR against main
  • When new commits land in main, a github action will automatically deploy the app to https://beta.lightandsound.design

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •