A simple Flask web application built with SQLAlchemy to manage a user database. It provides RESTful API endpoints for user registration, login, and profile management. This project serves as a foundation for more advanced web application development.
- User registration and authentication.
- Integration with SQLite database using SQLAlchemy.
- RESTful API for managing user data.
- Modular project structure for scalability.
- Python 3.8 or higher.
- Git installed on your system.
-
Clone the repository:
git clone https://github.com/yourusername/your-repo-name.git cd your-repo-name -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Set environment variables: Create a
.envfile in the project root and add your Flask app configurations:FLASK_APP=app.py FLASK_ENV=development SECRET_KEY=your_secret_key
-
Run the application:
flask run
Access the application at
http://127.0.0.1:5000.
- Registration Endpoint:
POST /register
- Login Endpoint:
POST /login
project-root/
|-- templates/
|-- requirements.txt
|-- app.py
|-- README.md
|-- LICENSE
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please fork the repository and submit a pull request.
- Flask: https://flask.palletsprojects.com/
- SQLAlchemy: https://www.sqlalchemy.org/