TaskMaster API is a powerful ASP.NET Core Web API project designed for managing tasks efficiently.
- Task Management: Create, update, delete, and retrieve tasks.
- Authentication: Secure endpoints using JWT-based authentication.
- Database: Utilizes SQL Server for data storage.
- ASP.NET Core
- Entity Framework Core
- SQL Server
- JWT Authentication
- .NET 6 SDK
- SQL Server
- Clone the repository:
git clone https://github.com/chenxidev1129/taskmaster-api.git
- Navigate to the project directory:
cd taskmaster-api
- Update the connection string:
- Open appsettings.json and replace the ConnectionStrings with your SQL Server connection details:
"ConnectionStrings": { "DefaultConnection": "Server=ADMIN\\SQL2022;Database=TaskMaster;Integrated Security=true;" }
- Run the migration to apply the database schema:
dotnet ef database update --context TaskMasterDbContext
- Run the application:
dotnet run
- GET /api/tasks: Retrieve all tasks.
- GET /api/tasks/{id}: Retrieve a specific task by ID.
- POST /api/tasks: Create a new task.
- PUT /api/tasks/{id}: Update an existing task.
- DELETE /api/tasks/{id}: Delete a task by ID.
Contributions are welcome! Please follow the guidelines outlined in CONTRIBUTING.md.
This project is licensed under the MIT License.