update
This commit is contained in:
35
README.md
35
README.md
@@ -5,4 +5,39 @@ Installed apollo server and graphql npm install apollo-server@^2 graphql@^14.6.0
|
||||
Can Run the project using node src/index.js
|
||||
|
||||
Installed typescript to the project npm install typescript --save-dev
|
||||
Installed typescripts error runtime npm install ts-node typescript --save-dev
|
||||
|
||||
Running typescript compiler npx tsc
|
||||
|
||||
|
||||
Restart server on save npm install -g nodemon
|
||||
Run nodemon src/index.js instead of node src/index.js
|
||||
|
||||
INSTALL PRISMA
|
||||
npm install prisma --save-dev
|
||||
npm install @prisma/client
|
||||
|
||||
INSTALL WEBTOKENS JTK
|
||||
npm install jsonwebtoken bcryptjs
|
||||
|
||||
Initialise prisma npx prisma init
|
||||
|
||||
|
||||
Run the prisma migrate to update the database connections
|
||||
npx prisma migrate dev
|
||||
|
||||
Generate prisma client
|
||||
npx prisma generate
|
||||
|
||||
MIGRATE
|
||||
npx prisma migrate dev
|
||||
|
||||
|
||||
|
||||
query {
|
||||
link {
|
||||
id
|
||||
url
|
||||
description
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user