https://github.com/4techsadiq/flask-log
A simple flask application to route through Signup and Login
https://github.com/4techsadiq/flask-log
Last synced: 5 months ago
JSON representation
A simple flask application to route through Signup and Login
- Host: GitHub
- URL: https://github.com/4techsadiq/flask-log
- Owner: 4TechSadiq
- Created: 2024-02-18T17:13:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-18T17:46:21.000Z (over 2 years ago)
- Last Synced: 2025-03-28T04:45:07.384Z (about 1 year ago)
- Language: HTML
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Login and Signup Application
This Flask application provides basic user authentication functionalities such as login, signup, and logout. User data is stored temporarily in a JSON file named `db.json`.
## Features
- **Login:** Users can log in with their username and password.
- **Signup:** New users can sign up by providing their email, username, and password.
- **Logout:** Users can log out of their session.
## Usage
1. Clone the repository:
```bash
git clone (https://github.com/S4DIQ84/Flask-Log)
```
2. Navigate to the project directory:
```bash
cd [Your Directory Name]
```
3. Install dependencies:
```bash
pip install Flask
```
4. Run the application:
```bash
python app.py
```
5. Access the application in your web browser at `http://localhost:5000`.
## Files
- **app.py:** Contains the Flask application code.
- **template/login.html:** HTML template for the login page.
- **template/signup.html:** HTML template for the signup page.
- **template/index.html:** HTML template for the index page.
- **db.json:** JSON file used as a temporary database to store user information.
## Notes
- This application is intended for educational and demonstration purposes and should not be used in production without implementing proper security measures.
- The `db.json` file serves as a temporary database. For production use, consider using a more robust database solution.
- Ensure to handle sensitive user information securely and implement additional security measures such as password hashing and session management before deploying to a production environment.
## Author
- Mohammed Sadiq Ali
- github@: https://github.com/S4DIQ84