A To-Do application built with Laravel and React..
It provides user authentication and project-task management with secure access control.
- 🔐 Token-based authentication using Laravel Sanctum
- 👤 User registration and login
- 📁 Create projects
- 📋 Create tasks inside a project
- 🔒 Ownership-based access control (users only see their own data)
- Backend: Laravel
- Authentication: Laravel Sanctum
- Database: PostgreSQL (serverless from Neon)
git clone https://github.com/sujitmohanty/todo-app.gitcomposer installcp .env.example .env
php artisan key:generateUpdate .env with database credentials.
php artisan migratephp artisan serveAPI will be available at:
http://127.0.0.1:8000/api
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/register |
Register new user |
| POST | /api/login |
Login user |
| GET | /api/me |
Get current user |
| POST | /api/logout |
Logout user |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/projects |
Get all projects |
| POST | /api/projects |
Create project |
{
"title": "My First Project"
}| Method | Endpoint | Description |
|---|---|---|
| GET | /api/projects/{project_id}/tasks |
Get tasks for a project |
| POST | /api/projects/{project_id}/tasks |
Create task in project |
{
"title": "Do XYZ"
}





