Skip to content

Commit

Permalink
Merge pull request #36 from quaternionmedia/pkce-auth
Browse files Browse the repository at this point in the history
🔐 PKCE Auth
  • Loading branch information
mrharpo authored Jan 22, 2024
2 parents 58b0fb9 + 5474fa8 commit d24d911
Show file tree
Hide file tree
Showing 42 changed files with 5,600 additions and 346 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 🏭 Build and Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: write

jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v4

- name: 🛠️ Install and Build
run: |
npm ci
# Fixes duplicate "main" definition in package.json
sed -i '17d' node_modules/javascript-astar/package.json
npm run ci
- name: 🚀 Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
stockfish_*
config.py
db.json
*.pem
node_modules
.parcel-cache
dist
7 changes: 3 additions & 4 deletions api.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from fastapi import FastAPI
from starlette.staticfiles import StaticFiles
from oauth import app as oauth_app

app = FastAPI()

app.mount('/oauth', oauth_app)
app.mount('/static', StaticFiles(directory='web/static', html=True), name='static')
app.mount('/', StaticFiles(directory='web/dist', html=True), name='dist')
app.mount('/static', StaticFiles(directory='static', html=True), name='static')
app.mount('/', StaticFiles(directory='dist', html=True), name='dist')


if __name__ == '__main__':
from uvicorn import run

run(app, host='0.0.0.0', port=5000)
8 changes: 0 additions & 8 deletions config.py

This file was deleted.

4 changes: 0 additions & 4 deletions db.py

This file was deleted.

79 changes: 0 additions & 79 deletions oauth.py

This file was deleted.

Loading

0 comments on commit d24d911

Please sign in to comment.