Skip to content

Commit d261ad4

Browse files
committed
updated
1 parent 1e14860 commit d261ad4

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ POSTGRES_PASSWORD=password123
55
POSTGRES_DB=rust_sqlx
66

77
DATABASE_URL=postgresql://admin:password123@localhost:6500/rust_sqlx?schema=public
8+
9+
PGADMIN_DEFAULT_EMAIL=admin@admin.com
10+
PGADMIN_DEFAULT_PASSWORD=password123

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,12 @@ services:
99
- progresDB:/data/postgres
1010
env_file:
1111
- ./.env
12+
pgAdmin:
13+
image: dpage/pgadmin4
14+
container_name: pgAdmin
15+
env_file:
16+
- ./.env
17+
ports:
18+
- "5050:80"
1219
volumes:
1320
progresDB:

src/handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use serde_json::json;
99

1010
#[get("/healthchecker")]
1111
async fn health_checker_handler() -> impl Responder {
12-
const MESSAGE: &str = "Build Simple CRUD API with Rust, SQLX, and Actix Web";
12+
const MESSAGE: &str = "Build Simple CRUD API with Rust, SQLX, Postgres,and Actix Web";
1313

1414
HttpResponse::Ok().json(json!({"status": "success","message": MESSAGE}))
1515
}

0 commit comments

Comments
 (0)