Git Product home page Git Product logo

python-login-with-unit-test's Introduction

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

python-login-with-unit-test's People

Contributors

chaitanyarai19 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.