Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Actix & Postgres API

Simple Todo Backend Application made with Rust and Actix for performance benefits source.

Installation

You need to install cargo package available for your system.

Database

Run docker-compose (in background):

docker-compose up -d

Command to populate postgres db:

psql -h 127.0.0.1 -p 5432 -U rust rust < database.sql

Usage

Running development version in command line

cargo run

Building for production

cargo build --release

Performance benchmarks

Homepage:

ab -n 10000 -k -c 30 -q http://localhost:8080/

Todos page (includes postgres reads):

ab -n 10000 -k -c 30 -q http://localhost:8080/todos

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Simple Todo Backend Application made with Rust and Actix for performance benefits

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages