Skip to content

Commit

Permalink
got graphql server running
Browse files Browse the repository at this point in the history
  • Loading branch information
kmurf1999 committed Dec 20, 2020
1 parent 4e8d7d8 commit ebcf249
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 80 deletions.
129 changes: 71 additions & 58 deletions api/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "warp-api-starter-template"
name = "holdemsolver-api"
version = "0.1.0"
authors = ["Aslam Ahammed <[email protected]>"]
authors = ["Kyle Murphy <[email protected]>"]
edition = "2018"

# [[bin]]
Expand All @@ -13,7 +13,7 @@ anyhow = "1.0.34"
thiserror = "1.0.20"
clap = "3.0.0-beta.2"
dotenv = "0.15.0"
tracing = "0.1.15"
tracing = "0.1.16"
tracing-subscriber = "0.2.15"
serde = "1.0.114"
serde_json = "1.0.59"
Expand Down
1 change: 0 additions & 1 deletion api/migrations/1970-01-01-000000_movine_init/down.sql

This file was deleted.

8 changes: 0 additions & 8 deletions api/migrations/1970-01-01-000000_movine_init/up.sql

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 3 additions & 3 deletions api/scripts/run_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# postgres is just starting up, may not accept connections right away
sleep 5
# Run database migration fixes
movine init
movine status
movine fix
# movine init
# movine status
# movine fix

# Run server with cargo watch and systemfd for autoreload
systemfd --no-pid -s http::0.0.0.0:3535 -- cargo watch -x run
Expand Down
13 changes: 10 additions & 3 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ services:
- ./api:/api
env_file:
- ./.env.dev
# environment:
# RUST_LOG: info
# DATABASE_URL: postgres://mydb:changeme@db:5432/mydb
environment:
RUST_LOG: info
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
# REDIS_URL: redis://cache:6379/
# JWT_SECRET: ITS A SECRET
# ARGON_SECRET: ITS ANOTHER SECRET
Expand All @@ -38,6 +38,7 @@ services:
- 5432:5432
volumes:
- ./data:/var/lib/postgresql/data
- ./migrations/up:/docker-entrypoint-initdb.d/
env_file:
- ./.env.dev
# environment:
Expand All @@ -51,3 +52,9 @@ services:
ports:
- 6379:6379
restart: always

adminer:
image: adminer
restart: always
ports:
- 8080:8080
File renamed without changes.
File renamed without changes.

0 comments on commit ebcf249

Please sign in to comment.