Skip to content

🦀 To Do api powered by actix-web, diesel, postgres, r2d2, jwt, paperclip for docs

License

Notifications You must be signed in to change notification settings

Flict-dev/Todo-api

Repository files navigation

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

About

🦀 To Do api powered by actix-web, diesel, postgres, r2d2, jwt, paperclip for docs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages