A full-stack task management application built with Express, React, and PostgreSQL.
- Create, read, update, and delete tasks
- Mark tasks as completed
- Responsive UI with modern design
- Node.js with Express
- TypeScript
- Drizzle ORM
- PostgreSQL database
- React
- TypeScript
- Tailwind CSS
- Shadcn UI components
- React Query for data fetching
- Node.js (v18 or later)
- PostgreSQL database
- Clone the repository:
git clone <your-repository-url>
- Install dependencies:
npm install
- Set up your database:
npm run db:push
Run the development server:
npm run dev
This will start both the backend API server and frontend development server concurrently using Vite.
Build the application:
npm run build
Start the production server:
npm run start
Method | Endpoint | Description |
---|---|---|
GET | /api/tasks | Get all tasks |
POST | /api/tasks | Create a new task |
PATCH | /api/tasks/:id | Update a task by ID |
DELETE | /api/tasks/:id | Delete a task by ID |
├── client/ # Frontend code
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── pages/ # Page components
│ │ ├── lib/ # Utility functions
│ │ └── main.tsx # Entry point
├── server/ # Backend code
│ ├── index.ts # Express server setup
│ ├── routes.ts # API routes
│ ├── storage.ts # Database operations
│ └── db.ts # Database connection
└── shared/ # Shared code
└── schema.ts # Database schema
MIT