This project is a concept that demonstrates a simple authentication system using the Peewee ORM, Streamlit and MySQL. Users can register, log in, and access protected content.
The idea behind this project is to offer a straightforward authentication solution that can serve as a starting point for more complex systems. While this project is just a foundation, there is room for future enhancements, such as cookie handling, password reset and email confirmation via SMTP, etc.
-
Clone the repository:
git clone https://github.com/oliveirafafa/streamlit-peewee-auth.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your database configuration in
.env
.DB_NAME = spa DB_USER = root DB_PASSWORD = 123456 DB_HOST = 127.0.0.1 DB_PORT = 3306
NOTE: The database will be created if it does not exist.
-
Run the app.
streamlit run main.py
-
Access the application in your web browser.
-
Register a new account with your email and password.
-
Log in with your registered credentials.
-
Access protected content and customize the authentication system as needed for your project.
- User registration with email and password.
- User login and session management.
- Easily extensible for additional features.
This project is licensed under the MIT License - see the LICENSE file for details.