Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔐 PKCE Auth #36

Merged
merged 23 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading