Skip to content

MYRon-TO/yuru

Repository files navigation

Here is the source code of my blog

These code won't work on windows, I guess :(

Quick Start

make sure you have installed node.js ,mysql and rust

Init Datebase

connect to mysql and run the following sql

- create database

CREATE DATABASE yuru;

- create user

-- 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';

- fill the config

mv .config/config.toml.example .config/config.toml

choose a editor you like :)

vim .config/config.toml

Build

make sure you are in the root directory of this project

cargo build --release

Run

cargo run --release --bin init_db
cargo run --release --bin backend

What I use

  • apache(or lighttpd)
  • mysql/mariadb
  • node.js
    • npm
      • typescript
      • marked
      • husky
      • material design
        • material design icons
        • material desifn lite
      • sakana-widget
  • fontawesome
  • rust
    • cargo
      • axum
      • tokio
      • tower
      • sqlx
      • serde
        • serde_json
      • toml
      • askama
      • walkdir

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors