Skip to content

sujitmohanty/todo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📝 To-Do App

A To-Do application built with Laravel and React..
It provides user authentication and project-task management with secure access control.


🚀 Features

  • 🔐 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)

🛠 Tech Stack

  • Backend: Laravel
  • Authentication: Laravel Sanctum
  • Database: PostgreSQL (serverless from Neon)

📦 Installation

1. Clone the repository

git clone https://github.com/sujitmohanty/todo-app.git

2. Install dependencies

composer install

3. Setup environment

cp .env.example .env
php artisan key:generate

Update .env with database credentials.


4. Run migrations

php artisan migrate

5. Start the server

php artisan serve

API will be available at:

http://127.0.0.1:8000/api

📡 API Endpoints

🧑‍💻 Auth

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

📁 Projects

Method Endpoint Description
GET /api/projects Get all projects
POST /api/projects Create project

Create Project

{
    "title": "My First Project"
}

✅ Tasks

Method Endpoint Description
GET /api/projects/{project_id}/tasks Get tasks for a project
POST /api/projects/{project_id}/tasks Create task in project

Create Task

{
    "title": "Do XYZ"
}

📸 Screenshots

Register Login Create Project Create Task

Register Login Dashboard

About

A Full Stack Todo Application with Laravel Backend and React frontend

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors