Version 0.1.11
Backend server for AIwaffle
- / Index page
- /auth/ the user login/register pages
- /oauth/ the OAuth2 authorization
- /api/model/ the model APIs
Auth: auth
OAuth2: oauth2
Auth API: api_auth
Model API: model
An internal server that runs a something unrelated to web (e.g.: computation)
Could be integrated to the web server
- Clone this repo and initialize submodules
git clone https://github.com/AIwaffle/AIwaffle_Server1.git git submodule update --init
- Install the project and dependencies
pip3 install -e .
- Create instance directory
mkdir instance
- Edit
instance/config.py
with the following contentsSECRET_KEY = "Your Secret Key" # Require a random string or bytes SQLALCHEMY_DATABASE_URI = "sqlite://" # Change if you want different databases USE_EXTRA_SERVER = True # Whether you want to run a separate extra server
-
Other approaches
Edit
app.py
-
- Run with uWSGI
uwsgi uwsgi.ini
- (Optional) Run the extra server if
USE_EXTRA_SERVER=True
python3 -m server1_extra
-
(Optional): Configure uWSGI
Edit
uwsgi.ini
- (Optional) Run the extra server if
- Add language constants
- Support logging configuration
Licensed under the MIT license
Copyright 2019-2020