https://github.com/karabharat/task-list-demo
React Full Stack Task UI With Tan Stack Query, HonoJs, DrizzleORM Demonstration
https://github.com/karabharat/task-list-demo
Last synced: 6 months ago
JSON representation
React Full Stack Task UI With Tan Stack Query, HonoJs, DrizzleORM Demonstration
- Host: GitHub
- URL: https://github.com/karabharat/task-list-demo
- Owner: KaraBharat
- License: other
- Created: 2024-11-04T13:59:56.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-03T12:29:15.000Z (7 months ago)
- Last Synced: 2025-03-28T21:01:52.151Z (6 months ago)
- Language: TypeScript
- Homepage:
- Size: 283 KB
- Stars: 179
- Watchers: 5
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
🎥 [Watch the Demo Video](https://www.bharatkara.com/images/work/task-list-full-stack-2024-11-18%20104133.mp4)
## Tools used to build this project
- Next.js
- React
- Tanstack Query
- Zustand
- Shadcn UI
- TypeScript
- TailwindCSS
- HonoJs
- Zod
- DrizzleORM
- Neon
- PostgreSQL- ⚠️ No authentication and user management added yet
## Getting Started
First, run the development server:
## Create account and database on Neon
Go to [Neon](https://neon.tech/) and create an account.
Create a new project and select the free tier.
## Install Package
```bash
npm install
```## Set database connection URL
Create a `.env` file and set the database connection URL.
```bash
DATABASE_URL='postgresql://xxxxxxx-xxxxxx:xxxxxxx-xxxxxx@xxxxxxx-xxxxxx.db.neon.tech/xxxxxxx-xxxxxx?sslmode=require'
```## Generate Database
```bash
npm run db:generate
```## Migrate Database
```bash
npm run db:migrate
```## Run Studio
```bash
npm run db:studio
```## Run Server
```bash
npm run dev
```## Database sample data script path
```bash
src/database/Sample-Data-Script/
```## Run sample data script using Neon SQL Editor
Go to [Neon Studio](https://studio.neon.tech/) and run the sample data script.
```sql
\i src/database/Sample-Data-Script/sample-data-script.sql
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
[](https://buymeacoffee.com/bharatkara)
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.