This project includes several files and codes related to user authentication and profile management using Flask and MongoDB.
-
styles.css: This file contains CSS styles for styling HTML elements in the project.
-
login.html: This HTML file provides a login form where users can input their username and password to log in to the system.
-
profile.html: This HTML file displays user information such as bio, contact information, and provides options to upload a profile image and manage the user profile.
-
register.html: This HTML file contains a registration form where new users can sign up by providing their email, username, and password.
-
mongodb_connection_test.py: This Python script demonstrates how to connect to a MongoDB database, insert a new user, and check the insertion result.
-
app.py: This Python script is the main Flask application file that handles routing, user authentication, and profile management functionalities.
- Clone the repository:
git clone https://github.com/your-username/your-repository.git
- Navigate to the project directory:
cd your-repository
- Install the required dependencies:
pip install -r requirements.txt
- Run the Flask application:
python app.py
- Open a web browser.
- Navigate to
http://localhost:5000
to access the login page. - Log in with your username and password or register for a new account.
- After successful login or registration, you will be redirected to your profile page.
- On the profile page, you can view and edit your profile information, upload a profile picture, and log out.
- MongoDB is used as the database for this project. The MongoDB server is accessed locally at the following IP address:localhost:27017
Sekandari Hamidreza