Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 704 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 704 Bytes

todo

Applications made by Rust

Install cargo commands

rustup component add rustfmt
ustup component add clippy
cargo install cargo-make

Format and lint

cargo make format
cargo make lint

Install nerdctl

# MacOS
brew install lima
limactl start

Run in docker

lima nerdctl compose up -d
cd server
cargo install sqlx-cli --no-default-features --features native-tls,postgres
DATABASE_URL='postgres://postgres:P@ssw0rd!@localhost:15432/todo' sqlx migrate run

Save database information

DATABASE_URL='postgres://postgres:P@ssw0rd!@localhost:15432/todo' cargo sqlx prepare -- --bin todo-server

Then, access localhost:8080.