Giter Club home page Giter Club logo

yuru's Introduction

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

yuru's People

Contributors

myron-to avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.