https://github.com/theprojectsx/prisma-sqlite-nextjs
Using SQLite and Prisma to create a Task Tracker web app using Next JS (Feature Testing Project)
https://github.com/theprojectsx/prisma-sqlite-nextjs
Last synced: about 1 year ago
JSON representation
Using SQLite and Prisma to create a Task Tracker web app using Next JS (Feature Testing Project)
- Host: GitHub
- URL: https://github.com/theprojectsx/prisma-sqlite-nextjs
- Owner: TheProjectsX
- Created: 2024-02-03T14:24:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-05T13:30:12.000Z (over 2 years ago)
- Last Synced: 2025-02-13T00:45:46.571Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Task Tracker
Isn't created as a Serious Project. Just created to Clear the concepts of the Used Technologies...
### Technologies:
- Next JS
- Prisma
- SQLite
- ChatGPT
### Frontend:
Designed by _ChatGPT_. Modified and Described by _Your Very Own!_
### Prisma Installation
```
yarn add prisma @prisma/client sqlite3
yarn prisma init
```
### Setting up SQLite
Edit in "prisma/schema.prisma"
```
datasource db {
provider = "sqlite"
url = "file:./dev.db"
}
```
### Add Model
Edit in "prisma/schema.prisma"
```
generator client {
provider = "prisma-client-js"
}
model UserTask {
id String @id @default(cuid())
title String
description String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
```
### Generate Prisma Client
```
yarn prisma generate
```
### Migrate after Updating Model
```
yarn prisma migrate dev --name init
```
### View the Database as GUI
```
yarn prisma studio
```
### Conversation with ChatGPT
If you are interested in Checking the Conversation with the ChatGPT, you Can [Check Here](https://chat.openai.com/share/c1b551b6-3002-410d-b865-dc2a2468d20d)