Simple APS viewer with python-flask.
-
Clone the following repo.
-
Create a local virtual environment inside the root directory of the repo i.e
python3 -m venv venv
in linux orpython -m venv venv
in windows. -
Activate virtual environment in windows
.\venv\Scripts\activate
orsource venv/bin/activate
in linux. -
Install all the required dependencies as follows:
pip install -r requirements.txt
. -
Create
.env
file and add the following environment variables.export FLASK_APP=run.py export FLASK_RUN_PORT=8000 SECRET_KEY='verysecret' FLASK_ENV=development DEBUG=True TESTING=False FORGE_CLIENT_ID='Your-Client-Id' FORGE_CLIENT_SECRET='Your-Client-Secret' FORGE_BUCKET='Optional-Bucket-Key' FORGE_REGION='US' i.e US
-
Then run the application as follows
flask run
You can test the application on Heroku.
Petr Broz
Harun G. | Autodesk Developer Advocate