Skip to content

itmo-wad/TranNgocHuan-HW2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Authentication Feature Implementation for Web Application

This project implements an authentication feature for a web application, storing user data in a database MongoDB.

Features

Basic Authentication

  • Listen on localhost:5000: The application listens on localhost:5000(or the address shown in terminal).

  • Authentication Form: An authentication form is rendered at http://localhost:5000. Alt text

  • Redirection: Upon successful authentication, the user is redirected to profile page at http://localhost:5000/profile. Alt text

  • Data Storage: Usernames and passwords are stored in MongoDB. Alt text

Advanced Features (Optional)

  • User Registration: Users can create new accounts. Profile data is specific to each account. Alt text

  • Form Registration: User enters information to register Alt text

Profile will be shown with data respected to each account: Alt text

  • Password hashing: Passwords will be hashed before being saved to the database. Alt text

  • Logout: When logging out, the page will be redirected to the login confirmation page. Alt text

Technologies Used

  • Python (Programming Language)
  • Flask (Web Framework)
  • MongoDB(Database)
  • bcrypt (Password Hashing)
  • HTML, CSS, JavaScript (Frontend)

How to Run

  1. Clone the Repository:

    git clone https://github.com/itmo-wad/TranNgocHuan-HW2.git
  2. Navigate to the Project Directory:

    cd [project directory name]
  3. Install Dependencies:

    pip install Flask pymongo bcrypt
  4. Database Setup: MongoDB: Ensure MongoDB is running and configure the connection URI in Python code.

  5. Run the Application:

    py app.py
  6. Access the application: Open your web browser and navigate to http://localhost:5000 (or the address shown in terminal).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published