ryuma017 / twimi

WIP: A Twitter-like API implemented with Clean Architecture using Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twimi

A Twitter-like API implemented based on Layered Architecture.
(This is a deliverable of the internship at Yumemi Inc.)

How to build (MacOS)

Pre-requisites

  • Docker
brew install --cask docker
  • mold
brew install mold
  • sqlx-cli
cargo install sqlx-cli --no-default-features --features rustls,mysql

Build

Create and migrate MySQL database via Docker:

./scripts/init_mysql.sh

Set a key to encode a JWT with:

export SECRET_KEY="your-jwt-secret"

Build the server:

cargo build

About

WIP: A Twitter-like API implemented with Clean Architecture using Rust.


Languages

Language:Rust 98.1%Language:Shell 1.9%