- This is a simple Python login page project created using Flask. The project demonstrates the implementation of a basic login system and includes unit tests to verify its functionality.
- User authentication: Users can log in using their username and password.
- Basic error handling: The project includes basic error handling for incorrect login credentials.
- Unit testing: Unit tests are provided to verify the correctness of the application.
- Python 3
- Flask
- Clone the repository to your local machine:
git clone https://github.com/chaitanyarai19/Python-Login-With-Unit-Test.git
- Navigate to the project directory:
cd Python-Login-With-Unit-Test
- Install the required dependencies: (open terminal)
pip install Flask
- Run the Flask application:
python app.py
- Open a web browser and access the login page at http://localhost:5000.
- Run the unit tests:(open terminal)
python tests.py
- Access the login page in your web browser.
- Enter a username and password to log in.
- The application will display a welcome message for valid login credentials or an error message for invalid credentials.
- app.py: The main Flask application.
- templates/login.html: HTML template for the login page.
- tests.py: Unit tests for the application.
If you'd like to contribute to this project, please follow these steps:
- Fork the repository on GitHub.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with clear, concise messages.
- Push your branch to your fork.
- Create a pull request to the main repository.
- This project is licensed under the MIT License - see the LICENSE file for details.
- Flask for providing a lightweight web framework for this project.
- Python's unit test module for creating unit tests.
- For any questions or feedback, feel free to contact the project maintainer: @chaitanyarai19