Skip to content

Commit

Permalink
Moves web package to top level directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Jan 8, 2024
1 parent 0d7e25c commit 2207f91
Show file tree
Hide file tree
Showing 38 changed files with 43 additions and 155 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
stockfish_*
config.py
db.json
*.pem
node_modules
.parcel-cache
dist
yarn.lock
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.

36 changes: 36 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "launchchess",
"version": "0.1.1",
"description": "Chess on a Launchpad",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"browserslist": [
"defaults"
],
"repository": {
"type": "git",
"url": "github.com/quaternionmedia/launchchess"
},
"author": "Harpo",
"license": "MIT",
"dependencies": {
"@bity/oauth2-auth-code-pkce": "^2.13.0",
"alertifyjs": "^1.13.1",
"can-ndjson-stream": "^1.0.2",
"chess.js": "^1.0.0-beta.6",
"chessground": "^9.0.2",
"construct-ui": "^0.3.3",
"javascript-astar": "^0.4.1",
"jwt-decode": "^3.1.2",
"material-design-icons-iconfont": "^6.1.0",
"mithril": "^2.2.2",
"webmidi": "^3.0.25"
},
"devDependencies": {
"@babel/cli": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"parcel": "^2.11.0",
"process": "^0.11.10"
}
}
16 changes: 0 additions & 16 deletions renew-cert.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 0 additions & 4 deletions web/.gitignore

This file was deleted.

36 changes: 0 additions & 36 deletions web/package.json

This file was deleted.

0 comments on commit 2207f91

Please sign in to comment.