This Todo Application allows users to manage their tasks by providing functionalities to create, read, update, and delete tasks. The backend is built with C# .NET and an SQLite database, while the frontend is developed using ReactJS with TypeScript, Vite, Tailwind CSS, and React Query.
- CRUD Operations: Create, Read, Update, and Delete tasks.
- Priority Management: Set priority levels for tasks.
- Task Completion: Mark tasks as completed.
- Responsive UI: User-friendly and responsive interface.
- Real-time Updates: Automatic updates using React Query.
- Backend: C# .NET, Entity Framework, SQLite, Swagger
- Frontend: ReactJS, TypeScript, Vite, Tailwind CSS, React Query
- Version Control: Git, GitFlow
- Node.js: Ensure you have Node.js installed. Version 20.x or higher is recommended. Download and install Node.js.
- .NET SDK: Ensure you have the .NET SDK installed. Version 8.x or higher is recommended. Download and install .NET SDK.
-
Clone the repository:
git clone https://github.com/Sathursan-S/TodoApp.git cd TodoApp/backend/TodoApi -
Restore dependencies:
dotnet restore
-
Update the database:
dotnet ef database update
-
Run the application:
dotnet run
-
Access the Swagger UI for API documentation:
Open your browser and navigate to:
http://localhost:5053/swagger/index.html
-
Navigate to the frontend directory:
cd ../frontend/todo-app -
Install dependencies:
You can use npm, Yarn, pnpm, or Bun. Choose one of the following commands based on your preferred package manager:
# For npm npm install # For Yarn yarn install # For pnpm pnpm install # For Bun bun install
-
Run the development server:
Choose one of the following commands based on your preferred package manager:
# For npm npm run dev # For Yarn yarn dev # For pnpm pnpm dev # For Bun bun dev
-
Access the frontend application:
Open your browser and navigate to:
http://localhost:5174
To run the application locally, follow these steps:
-
Start the backend:
In the
backend/TodoApidirectory, run:dotnet run
-
Start the frontend:
In the
frontend/todo-appdirectory, run the appropriate command for your package manager:# For npm npm run dev # For Yarn yarn dev # For pnpm pnpm dev # For Bun bun dev
-
Open the application in your browser:
Frontend:
http://localhost:5174Swagger API Documentation:
http://localhost:5053/swagger/index.html
- Repository: GitHub Repository
- Branching Strategy: Use
mainfor production,developfor development, and feature branches for new features. - Commit Messages: Follow Conventional Commits for clear and consistent commit messages.