TaskMaster Backend is the server component of the TaskMaster project, responsible for managing tasks, user authentication, and data storage.
https://documenter.getpostman.com/view/22585263/2s9YJc3PYw
Backend Server: https://taskmaster-yk6i.onrender.com/
- Clone the repository:
git clone https://github.com/yourusername/taskmaster-backend.git
cd taskmaster-backend- Setup virtual environment & Install dependencies:
python -m venv .venv
cd .venv\Scripts && activate cd ../.. && pip install -r requirements.txt➡️ Database setup
flask db init
flask db migrate
flask db upgrade🌐 Run Tests (Both Unit and integration tests)
python -m pytest- Set up your environment variables by creating a
.envfile based on the providedenv.samplefile.
Make sure to set the following environment variables in your .env file:
FLASK_APP: Set toserverFLASK_ENV: Set todevelopmentorproductiondepending on your environment.DATABASE_URI: Your local or staging PostgreSQL database URI.SECRET_KEY: Any strong secret key for application security.JWT_SECRET_KEY: Any strong secret key for JSON Web Tokens (JWT).
-
Run the Flask application
flask run
The backend should now be running on http://localhost:5000.
- Create tasks with titles, descriptions, categories, priorities, and due dates.
- Update and edit existing tasks.
- Delete tasks when they are no longer needed.
- Categorize tasks based on their purpose or category.
- Set priorities to keep track of important tasks.
- User authentication and authorization with JWT.
- Token revocation and security measures.
- Comprehensive task management.
Feel free to explore the backend and integrate it with the frontend to use TaskMaster's full functionality!
