Skip to content

AlbertoVargasMoreno/BasicPythonWebLogin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Login Page with Python

Overview

A basic Python web application demonstrating a simple login page. The project uses standard Python libraries for HTTP server functionality and connects to a PostgreSQL database for user authentication.

Features

  • User Authentication: Verify user credentials against a PostgreSQL database.
  • Minimalistic Login Page: Provides a straightforward interface for user login.
  • Modular Architecture: Organized into separate files for improved code structure.
  • Easy Deployment: Designed for straightforward deployment on various hosting platforms.

Technologies Used

  • Python: The primary programming language.
  • HTTP Server: Utilizes Python's built-in http.server module.
  • PostgreSQL: Database management system for user authentication.

Usage

  1. Clone the repository:
 git clone https://github.com/AlbertoVargasMoreno/BasicPythonWebLogin.git
  1. Install dependencies (I think there's no need to install anything else).
pip install psycopg2-binary
  1. Configure the PostgreSQL database.
## import DB from sql file
psql -U postgres
postgres=# create database login_app;
psql -U postgres -d login_app < .\docs\create_tables.sql

## seed your DB
psql -U postgres -d login_app
login_app=# insert into users(username,password) values('chuchitaLaBolsearon','123123');
  1. Run the application:
 python login_controller.py
  1. Access the login page at http://localhost:8000.

Deployment

For deployment on a public server, until now it has not been deployed in a public server.

Contributing

Contributions are welcome! Feel free to submit issues, feature requests, or pull requests. For major changes, please open an issue first to discuss potential changes.

License

This project is licensed under the MIT License.

Acknowledgements

  • Assistance from ChatGPT 3.5

About

A basic Python web application demonstrating a simple login page.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages