Flask user register and login system
You have two option, short way, use docker. Long way;
- Create Mysql docker container (If you have MySQL service, skip this step);
docker run --name flask-mysql-service -e MYSQL_ROOT_PASSWORD=test_password -d mysql:latest --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
- Create virtualenv and install requirements;
virtualenv -p python3.6 venv
source venv/bin/activate
pip install -r requirements.txt
- Change env.example name to .env and fill in the content appropriately.
- The code that will create the database;
python db.conf.py
python dummy_processes.py
python setup.py
Look at the "http://localhost:4000"
docker-compose up
# If you want to install dummy data
docker exec -d flask-core-system python3 dummy_processes.py
Thats all, you can look at the "http://localhost:8000" :)
Test usernames and passwords:
- Sezer test123
- Barış 123test!.
- BengiSu 123test123
- Ayça 123test123