diff --git a/.env b/.env index e69de29..2c7d7f1 100644 --- a/.env +++ b/.env @@ -0,0 +1,2 @@ +DATABASE_URL=postgres://apfel:apfel@localhost:5432/apfel +JWT_SECRET_KEY=9b2cbd156a7a7e0e530acd780fdd16e8f37fa3fd8122c74a9b7e1ce6fc67980ed0e55572be4e382679a0c13d13f0a651d15e9e877bb579e957c899eb762b1bb4 \ No newline at end of file diff --git a/crates/entity/src/lib.rs b/crates/entity/src/lib.rs new file mode 100644 index 0000000..ba5b73f --- /dev/null +++ b/crates/entity/src/lib.rs @@ -0,0 +1,3 @@ +//! `SeaORM` Entity, @generated by sea-orm-codegen 1.0.1 + +pub mod prelude; diff --git a/crates/entity/src/prelude.rs b/crates/entity/src/prelude.rs new file mode 100644 index 0000000..a922265 --- /dev/null +++ b/crates/entity/src/prelude.rs @@ -0,0 +1 @@ +//! `SeaORM` Entity, @generated by sea-orm-codegen 1.0.1 diff --git a/dev-compose.yml b/dev-compose.yml new file mode 100644 index 0000000..f5c7598 --- /dev/null +++ b/dev-compose.yml @@ -0,0 +1,23 @@ +services: + db: + container_name: apfelnetzwerk-postgres + image: postgres + environment: + POSTGRES_DB: apfel + POSTGRES_USER: apfel + POSTGRES_PASSWORD: apfel + PGDATA: /data/postgres + volumes: + - db:/data/postgres + ports: + - "5432:5432" + networks: + - db + restart: unless-stopped + +networks: + db: + driver: bridge + +volumes: + db: \ No newline at end of file