This is a simple user authentication system built using Flask, a lightweight web framework for Python.
- Login and registration
- User sessions and session management
- Profile page
- Login required decorator
- Python 3
- Flask
- Clone this repository or download the zip file.
- Navigate to the project directory.
- Run the command pip install -r requirements.txt to install the required dependencies.
- Run the command python app.py to start the Flask server.
- Open your web browser and navigate to http://localhost:5000/.
- Once you have the server running, you can register a new user by visiting http://localhost:5000/register.
- After registering, you can log in at http://localhost:5000/login.
- After logging in, you will be redirected to your profile page at http://localhost:5000/profile, where you can see your username.
- You can also log out by visiting http://localhost:5000/logout.