Skip to content

rohansen856/rust_postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker actix postgres redis todo example

This is a Dockerized version of the actix todo example in Rust. It uses Docker, actix, postgres, redis, and diesel.

To run it, do

docker-compose up

You should pass in environment variables, e.g. through a .env file, something like as follows:

POSTGRES_USER=foobar
POSTGRES_PASSWORD=ram-crud-headache-airplane
POSTGRES_DB=todo
POSTGRES_PORT=5432
REDIS_HOST=redis
REDIS_PORT=6379
TODO_PORT=9003
DEVELOPMENT=true

In development mode, the app will auto-reload on code change using cargo-watch and listenfd.

To view the app, visit http://localhost:8000.

Dependencies

This is up-to-date as of the following releases. See Cargo.toml

actix-web = "2.0.0-rc"
actix-files = "0.2.0"
actix-session = "0.3.0"
actix-redis = {version = "0.8.0", features = ["web"]}
actix-rt = "1.0.0"

License

The code by the Actix authors is under an Apache license here. "# rust_full_backend" "# rust_full_backend" "# rust_full_backend" "# rust_postgres"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published