This is a Flask template project. You can use this as a starting point for your web application.
-
Clone the repository:
git clone <your-repository-url>
-
Create a virtual environment:
pyrton3 -m venv venv
-
Activate the virtual environment
source venv/bin/activate # On Windows use 'venv\Scripts\activate'
-
Install the required dependencies:
pip install -r requirements.txt
Before you start the application, you need to set up the environment variables. Create a .env
file in the root directory of the project and add the following variables:
SECRET_KEY='your_secret_key'
DATABASE_URI="mysql+mysqlconnector://username:password@localhost:3306/database_name"
JWT_SECRET_KEY='your_jwt_secret_key'
-
Set up the database:
flask db init flask db migrate flask db upgrade
-
Run the application:
flask run
-
Open your web browser and visit
http://localhost:5000
to view the application.
If you would like to contribute to this project, please follow these steps:
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git commit -m "Add your commit message here"
-
Push your changes to your forked repository:
git push origin feature/your-feature-name
-
Open a pull request to the original repository.