Skip to content

Commit

Permalink
Merge pull request #108 from cthit/gamma2integration
Browse files Browse the repository at this point in the history
Gamma2 Integration
  • Loading branch information
Oscariremma authored Jun 23, 2024
2 parents 5065fd7 + 67d3554 commit 51b66d1
Show file tree
Hide file tree
Showing 20 changed files with 1,088 additions and 476 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
build
.vscode/
package-lock.json
.env
23 changes: 23 additions & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
DB_USER=postgres
DB_PASS=password
DB_HOST=localhost
DB_PORT=5432
DB_NAME=bookit

DATABASE_URL=postgres://$DB_USER:$DB_PASS@$DB_HOST:$DB_PORT/$DB_NAME

ISSUER_BASE_URL=https://auth.chalmers.it
BASE_URL=http://localhost:8080
CLIENT_ID=[client id]
CLIENT_SECRET=[client secret]
API_KEY=[api-key id]:[api-key] # pre-shared token
SECRET=some_random_long_string

REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASS=""

SESSION_SECRET=secret
GRAPHIQL=true
MOCK=true
ADMIN_AUTHORITY=bookit-admin
16 changes: 0 additions & 16 deletions backend/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,4 @@ export DB_NAME=bookit

export DATABASE_URL=postgres://$DB_USER:$DB_PASS@$DB_HOST:$DB_PORT/$DB_NAME

export GAMMA_AUTH_URL=http://localhost:8081/api/oauth/authorize
export GAMMA_TOKEN_URL=http://localhost:8081/api/oauth/token
export GAMMA_USER_URL=http://localhost:8081/api/users/me
export GAMMA_CLIENT_ID=id
export GAMMA_CLIENT_SECRET=secret
export GAMMA_CALLBACK_URL=http://localhost:3001/auth/callback

export REDIS_HOST=localhost
export REDIS_PORT=6379
export REDIS_PASS=""

export SESSION_SECRET=secret
export GRAPHIQL=true
export MOCK=true
export ADMIN_AUTHORITY=bookit-admin

npm run migrate
Loading

0 comments on commit 51b66d1

Please sign in to comment.