Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.04 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.04 KB

To Do API

made-with-rust GitHub Workflow Status License

Usage:zap:

Use the virtual variable RUST_LOG for logging

# Copy example .env file
cp ./config/.env.example .env

# Run postgres
docker-compose up -d postgres

# Install diesel
cargo install diesel_cli --no-default-features --features postgres

# Run db migrations
DATABASE_URL=postgres://actix:actix@localhost:7878/actix diesel migration run

# Run unit tests
cargo test

# Run the server (Add --release for an optimized build)
cargo run

# Check it
curl http://localhost:7878/api/spec/v2

Swagger schema:memo:

here


Docker:whale2:

cd docker
docker-compose up

Build🛠️

cargo build --release

Tests:test_tube:

./test.sh 

or

cargo test