Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ishanoshada/flask-auth-app
An authentication app built with Flask, featuring user registration, login, and advanced security measures like password hashing and CSRF protection.
https://github.com/ishanoshada/flask-auth-app
authorization-app backend backend-flask csrf csrf-protection flask flask-backend json mongodb python
Last synced: 1 day ago
JSON representation
An authentication app built with Flask, featuring user registration, login, and advanced security measures like password hashing and CSRF protection.
- Host: GitHub
- URL: https://github.com/ishanoshada/flask-auth-app
- Owner: Ishanoshada
- License: mit
- Created: 2023-10-22T10:49:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-10T08:27:57.000Z (4 months ago)
- Last Synced: 2024-07-10T10:20:58.349Z (4 months ago)
- Topics: authorization-app, backend, backend-flask, csrf, csrf-protection, flask, flask-backend, json, mongodb, python
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌟 Flask Authentication App 🌟
![GitHub contributors](https://img.shields.io/github/contributors/Ishanoshada/flask-auth-app)
![Python Version](https://img.shields.io/badge/python-3.9-blue.svg)
![Flask Version](https://img.shields.io/badge/flask-orange.svg)Welcome to the Flask Authentication App! This app empowers users to register and log in with ease. It incorporates advanced features like password hashing and CSRF protection for enhanced security.
## 🚀 Get Started!
```bash
# 1. Install dependencies
pip install -r requirements.txt# 2. Run the app
python app.py
```## 📁 File Structure
```bash
.
├── app.py
├── data_storage.py
├── forms.py
├── helpers.py
├── static
│ └── style.css
├── templates
│ └── index.html
└── users.json
```## 🧐 Code Breakdown
- `app.py`: Contains the main Flask application code, including routes for registration, login, and logout.
- `data_storage.py`: Manages the storage of user data. Supports both JSON and MongoDB as data storage methods.
- `forms.py`: Defines WTForms for user registration and login.
- `helpers.py`: Provides functions for hashing and checking passwords.
- `static/style.css`: Contains the CSS styling for the application.
- `templates/index.html`: The HTML file for the user interface.
- `users.json`: JSON file used to store user data when using JSON as the data storage method.
## 🔮 Future Plans
We have exciting plans for the future! Expect features like email verification and account recovery to be added soon.
## 💽 Database Choices
1. **JSON**: Quick and easy setup, perfect for smaller applications. Data is stored in a JSON file (`users.json`).
2. **MongoDB**: Offers scalability and robust querying capabilities. Requires a MongoDB instance to be running.
**Repository Views** ![Views](https://profile-counter.glitch.me/flaskaluthappish/count.svg)
## Contributing
Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
## Acknowledgments
- Thanks to the Flask and MongoDB communities for providing excellent resources and documentation.
- Inspiration for this project came from the need for a simple and secure real-time chat application.## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---
🎉 Bravo! You're now ready to showcase your Flask Authentication App on GitHub. Feel free to explore and contribute to this exciting project! 🚀