This is a simple flask register-form application designed to run in multiple ways
-
This app use MongoDB as database supported by Flask-MongoAlchemy extension => So you have to install MongoDB database to run this locally
-
uses Flask-SocketIO along with Ajax for real time update
-
you will get an email if you have registered
This app is designed to run in different ways:
- As a standalone app running on your machine
- install python
git clone
the project thencd
into the directory- run
virtualenv -p /usr/bin/python3 venv
orpython -m venv venv
to create a virtual environment - activate it using
source venv/bin/activate
pip install -r requirements/prod_local.txt
to install the app libaries and it dependencies- install MongoDB database
sudo apt-get install mongodb
- check your database is installed and print its version using
mongo --version
- After installing, you need to set your application environment variable by running
export FLASK_APP=app.py
- run
export MAIL_PASSWORD=<your-email-password>
to set your email password environment variable - run the server using the script file
run.sh
by typing./run
- Access the running app in a browser at the URL written to the console (most likely http://0.0.0.0:5000)