anuraagnagar / flask-user-authentication

A Simple Authentication System for managing user login & registration in Flask/Python with SQLAlchemy.

Home Page:https://anuraag01.pythonanywhere.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User Authentication System in Flask/Python

A Simple Authentication System Project with basic user functionality in Python Flask with SQLAlchemy.

👩‍💻 Live Demo

Project features & functionality

  • Create account
  • Log In via (Username & Email address)
  • Logout
  • Account activation via email
  • Reset password via reset link
  • Reset new email via confirmation link
  • Update profile & add image
  • Change password after login

Framework & Library

  1. Flask
  2. Flask-Login
  3. Flask-SQLAlchemy
  4. Flask-WTF
  5. Flask-Mail
  6. Flask-Migrate
  7. Bootstrap-Flask
  8. Jinja2

Some Screenshots of our Project

Register Page

Register

Login Page

Login

Forgot Password Page

Forgot Password

Reset Password Page

Reset Password

Reset Email Page

Reset Email

Home Page

Home

Edit Profile Page

Edit Profile

Change Password Page

Change Password

Set up & Run locally.

1. Clone the git repository.

git clone https://github.com/anuraagnagar/flask-user-authentication.git

2. Go to the project directory.

cd flask-user-authentication

3. Create virtual environment.

python3 -m venv venv

4. Activate the environment.

On Windows

venv\scripts\activate

On MacOS/Linux

source venv/bin/activate

To run this project locally, you will need to change .env.example file to .env on base directory and set environment variables.

5. Install the requirement packages.

pip install -r requirements.txt

6. Migrate/Create a database.

Initialize the database migration directory.

flask db init

Run migrate command.

flask db migrate -m "initial_migration"

Upgrade the database for latest migration.

flask db upgrade

7. Last to run the server.

flask run

To access this application open http://localhost:5000 in your web browser.

Contributing

Contributions are welcome! If you find a bug or want to add a new feature, please open an issue or submit a pull request. For more information checkout CONTRIBUTING.md

Licence

By contributing to this project, you agree that your contributions will be licensed under the MIT License.

About

A Simple Authentication System for managing user login & registration in Flask/Python with SQLAlchemy.

https://anuraag01.pythonanywhere.com/

License:MIT License


Languages

Language:Python 52.4%Language:HTML 46.5%Language:CSS 1.1%