Skip to content

lex148/adom_actix_web_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple actix web app example showing how adom could be used in a project

Setup

  1. get a version of postgres up and running.
  2. update the connection string in ./src/config.rs (alternatively you could just set the ENV Variable )
  3. make sure the DB in the connection string exists CREATE DATABASE BLA;
  4. migrate the database to create the orders table and mock data
cargo run --bin migrate
  1. boot the server
cargo run --bin server
  1. You can use curl to see the server in action
curl http://localhost:5000/orders

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published