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.
- 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.
- Python: The primary programming language.
- HTTP Server: Utilizes Python's built-in http.server module.
- PostgreSQL: Database management system for user authentication.
- Clone the repository:
git clone https://github.com/AlbertoVargasMoreno/BasicPythonWebLogin.git- Install dependencies (I think there's no need to install anything else).
pip install psycopg2-binary- 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');- Run the application:
python login_controller.py- Access the login page at http://localhost:8000.
For deployment on a public server, until now it has not been deployed in a public server.
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.
This project is licensed under the MIT License.
- Assistance from ChatGPT 3.5