Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

https://github.com/eartttpy1/web2/tree/main/lab2

LAB1-----------
npm init -y
npm install swagger-ui-express express yamljs



LAB3-----------
npm install @prisma/client@6 prisma@6 --save-dev
npx prisma init
__
แก้ schema/datasource => (provider = "sqlite" และ url = "file:./dev.db") + แก้ config/datasource => (url: "file:./dev.db",)
แก้ -js ใน schema หลัง client
npx prisma migrate dev --name init
ทำ schema เสด
npx prisma migrate dev --name init
npx prisma generate
npx prisma migrate reset (ลบหมด)
npx prisma studio (เปิด db)



LAB4-----------
npm init -y
npm jsonwebtoken express
-----------
npm install swagger-ui-express yamljs cors

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages