Welcome to the Login System repository! This project provides a simple web-based login and registration system built with Python Flask and SQLite. It allows users to register, log in, and access a protected home page. This project is perfect for beginners who want to learn about user authentication and database integration in Flask.
- User registration
- User login
- Protected home page
- SQLite database integration
- Simple and clean user interface
- Beginner-friendly code structure
This project utilizes the following technologies:
- Python 3: The programming language used to build the application.
- Flask: A lightweight web framework for Python that makes it easy to build web applications.
- SQLite: A simple database engine used for storing user data.
- HTML/CSS: For creating the user interface.
To set up the Login System on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/alid070/Login-System.git
-
Navigate to the project directory:
cd Login-System
-
Create a virtual environment (optional but recommended):
python3 -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
python app.py
Now, you can access the application at http://127.0.0.1:5000
.
After running the application, you can use the following features:
-
Register: Click on the registration link to create a new account. Fill in the required fields and submit the form.
-
Login: After registering, you can log in using your credentials. If the login is successful, you will be redirected to the protected home page.
-
Home Page: This page is accessible only to logged-in users. You can see a welcome message and log out from this page.
Here's a brief overview of the project structure:
Login-System/
β
βββ app.py # Main application file
βββ requirements.txt # List of required packages
βββ templates/ # HTML templates
β βββ login.html # Login page template
β βββ register.html # Registration page template
β βββ home.html # Home page template
βββ static/ # Static files (CSS, JS, images)
βββ styles.css # CSS file for styling
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push to your branch.
- Open a pull request.
Please ensure your code adheres to the project's coding standards and is well-documented.
This project is licensed under the MIT License. See the LICENSE file for more details.
For the latest releases, please visit the Releases section. You can download the latest version and execute it to get started with the application.
For more information, check the Releases section for updates and improvements.
Thank you for checking out the Login System project! We hope it helps you learn about user authentication and database management in Flask. If you have any questions or feedback, feel free to reach out. Happy coding!