A Basic Demonstration App in python flask for a client-server architecture. This app demonstrates a Web server architecture with sqlite connection for a basic login page. Gunicorn here provides support for production server.
To run the app:
- Make sure python3 is installed
- Install requirements:
pip install -r requirements.txt
- Create a virtual environment:
python3 -m venv venv
- Activate the virtual env:
Windows:
venv\Scripts\activate
Mac:
source venv/bin/activate
- Run the app:
gunicorn -w 4 -b 0.0.0.0:8000 app:app
- Visit http://localhost:5000 to view the page in the browser.
- Use the credentials
testuser
andtestpassword
for successful login.