Here is the source code of my blog
These code won't work on windows, I guess :(
make sure you have installed node.js ,mysql and rust
connect to mysql and run the following sql
CREATE DATABASE yuru;
-- I won't show you my password :)
CREATE USER 'user_can_read'@'localhost' IDENTIFIED BY 'password';
CREATE USER 'user_can_write'@'localhost' IDENTIFIED BY 'password';
GRANT SELECT ON yuru.* TO 'user_can_read'@'localhost';
GRANT ALL PRIVILEGES ON yuru.* TO 'user_can_write'@'localhost';
mv .config/config.toml.example .config/config.toml
choose a editor you like :)
vim .config/config.toml
make sure you are in the root directory of this project
cargo build --release
cargo run --release --bin init_db
cargo run --release --bin backend
apache(or lighttpd)- mysql/mariadb
- node.js
- npm
typescript- marked
husky- material design
- material design icons
- material desifn lite
- sakana-widget
- npm
- fontawesome
- rust
- cargo
- axum
- tokio
- tower
- sqlx
- serde
- serde_json
- toml
- askama
- walkdir
- cargo