Skip to content

chaitanyarai19/Python-Login-With-Unit-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Login Page Project

Introduction

  • 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.

Features

  • 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.

Getting Started

Prerequisites

  • Python 3
  • Flask

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/chaitanyarai19/Python-Login-With-Unit-Test.git
  1. Navigate to the project directory:
cd Python-Login-With-Unit-Test
  1. Install the required dependencies: (open terminal)
pip install Flask

Running the Application

  1. Run the Flask application:
python app.py
  1. Open a web browser and access the login page at http://localhost:5000.

Running Unit Tests

  1. Run the unit tests:(open terminal)
python tests.py

Usage

  • 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.

Project Structure

  • app.py: The main Flask application.
  • templates/login.html: HTML template for the login page.
  • tests.py: Unit tests for the application.

Contributing

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.

License

  • This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Flask for providing a lightweight web framework for this project.
  • Python's unit test module for creating unit tests.

Contact

  • For any questions or feedback, feel free to contact the project maintainer: @chaitanyarai19

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published