Skip to content

brahimABD98/hello-axum-course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello axum course

this is my first axum project following the great tutorial from Brooks builds 's axum playlist on youtube

how to run

postgres setup with docker

docker-compose up -d

to run the container on the background(-d) and wait for the container to be ready(--wait)

docker-compose up -d --wait

add .env file with the following content (project map below)

DATABASE_URL=postgres://postgres:keyoarbcat@localhost:5432/postgres

to run the project

cargo run

run with live reload

cargo watch -x run

project map

    ├── src
    │   ├── main.rs
    │   ├── routes
    │   ├── lib.rs
    │   ├── data
    │   │   ├── .env
    ├── database
    │   ├── init.sql
    ├── Cargo.lock
    ├── Cargo.toml
    ├── README.md
    ├── docker-compose.yml

Releases

No releases published

Packages

No packages published

Languages