Customizable login and registration templates made with Flask that offers a choice of DB to be used between MySQL and MongoDB.
Set up a virtual environment and install dependencies.
pip install -r requirements.txt
- For SQL database, create a table in MySQL and add required information in the .env file.
cd sql
python app.py --t template1 --u root --p samplepw --h localhost --db tablename --s skey
- For a NoSQL database, intialize the .env file with the requried information.
cd mongo
python app.py --t template1 --c connection_string --s sskey
Sample .env files are provided for reference. Once it's set, the application can be run directly from their respective directories.
python app.py