svenstaro/rust-web-boilerplate
关于
Rust web template for modern web backend applications
学习与教育实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Rust Web Boilerplate
About
This is a boilerplate project made using best practices for getting started quickly in a new project. I made this for myself but maybe it will help someone else. Pull requests and discussions on best practices welcome!
Development setup
Install a few external dependencies and make sure ~/.cargo/bin is in your $PATH:
cargo install diesel_cli
cargo install cargo-watch
Optionally if you want line coverage from your tests, install cargo-tarpaulin:
cargo-tarpaulin
Copy .env.example to .env and update your application environment in this file.
Make sure you have a working local postgres setup. Your current user should be
admin in your development postgres installation and it should use the "peer" or
"trust" auth methods (see pg_hba.conf).
Now you can launch the watch.sh script which helps you quickly iterate. It
will remove and recreate the DB and run the migrations and then the tests on
all code changes.
./watch.sh
To get line coverage, do
cargo tarpaulin --ignore-tests
探索相关项目
加载中…