Skip to content

This project showcases a Flask-based web application that focuses on user authentication using MongoDB for data storage. It demonstrates user registration, login, and secure route protection, providing a practical foundation for building secure web applications.

Notifications You must be signed in to change notification settings

CodeAndCompany/flask-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-authentication

This Flask project demonstrates user authentication using MongoDB as the database. It provides a secure authentication system that allows users to sign up, log in, and access protected routes.

Project Structure

  • static: Directory for storing static files (CSS, JavaScript).
  • templates: Directory for storing HTML templates.
  • app.py: The main Flask application file.
  • config.py: Configuration file for storing sensitive information (e.g., MongoDB URI, secret keys).

Getting Started

Prerequisites

  • Python
  • Flask (install via pip3 install Flask)
  • Flask-PyMongo (install via pip3 install "pymongo[srv]" )
  • MongoDB (set up and running)

Installation

  1. Clone the repository:

    git clone https://github.com/PytechAcademy/flask-authentication.git
  2. Navigate to the project directory:

    cd flask-authentication

Usage

  1. Configure MongoDB URI in the config.py file:

    MONGO_URI = "your url from Atlas"
  2. Run the Flask application:

    python app.py
  3. Access the application in your web browser at http://localhost:5000.

About

This project showcases a Flask-based web application that focuses on user authentication using MongoDB for data storage. It demonstrates user registration, login, and secure route protection, providing a practical foundation for building secure web applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published