Skip to content
/ twimi Public

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

Notifications You must be signed in to change notification settings

ryuma017/twimi

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks