A production version of this site can be found here. To access a playground classroom with baseline permissions, use the class code "CLASS-TEST".
- Fair Assistance Queue name - thanks Prof O!
- Inside
faq_serverfolder directory runpip3 install Flask - All done. Check to see if it's there:
python3 -c "import flask; print(flask.__version__)"
- Inside
faq-clientinstall yarn:npm install -g yarn
- inside
faq_server:- CORS package:
pip install -U flask-corsto install theCORSpackage used infaq_server.py - flask_sqlalchemy:
pip install Flask-SQLAlchemy
- CORS package:
- inside
faq-client:- run the
yarncommand to update project with relevant packages.
- run the
- Inside
faq_serverrun:flask --app faq_server --debug run- if this doesn't work, run
FLASK_APP=__init__.py python3 -m flask run - ensure the app is running off of port
5000since this is the port the front end is sending requests to.
- if this doesn't work, run
- Inside
faq-serverrun:yarn dev- to see the web app in the browser, go to the url specified in the terminal.
- For a demonstration, enter the course code
CPTR-101and the admin key9edc9e13-aa87-4c9e-8ac4-d14e7857abea. This admin key will work wherever an admin key is specified anywhere on the site.
- If for some strange reason things are not updating, try clearing the cache on the browser and refreshing. For example, this
is accomplished on mac by simultaneously holdind down
shift+command+R. - Although normally bad practice,
.envfiles are added here to make this project easy to set up.