Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 643 Bytes

README.md

File metadata and controls

52 lines (34 loc) · 643 Bytes

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