Skip to content

rs333/zero2prod

Repository files navigation

Branch Status
main Rust (main) Security audit (main)
dev Rust (dev) Security audit (dev)

Zero to Production in Rust

How to build

cargo build

How to test

Veriy the postgres database is running, then run the tests.

scripts/init_db.sh
cargo test

Notes

How to remove the test databases using psql

for dbname in $(psql -U postgres -c "copy (select datname from pg_database where datname like '%-%-%-%-%') to stdout"); do     echo "$dbname"; psql -U postgres -c "drop database \"$dbname\""; done

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors