Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 707 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 707 Bytes

Rust async_pg template repository

Rust

Project template base on

  • tokio_postgres

  • use of tokio_pg_mapper for postgres data mapping

  • deadpool_postgres for connection pooling

  • dotenv + config for configuration

    cargo run

Using a different terminal send an HTTP POST request to the running server:

Send a ping:

echo '{"value": "pong"}' | http -f --json --print h POST http://127.0.0.1:8080/ping/post

Retrieve pings:

http http://127.0.0.1:8080/ping/get