tyreer / booknote Goto Github PK
View Code? Open in Web Editor NEWA way to remember
A way to remember
npm install --save react@^16.9.0 react-dom@^16.9.0
Looks good. Think it imports a fair bit that may or may not be needed. But I’ll take it as a quick start and sensible default source.
https://nextjs.org/blog/next-8
https://nextjs.org/blog/next-9
Next.js 9 will automatically prefetch components as they appear in-viewport.
Creating a page that matches the route /post/:pid can now be achieved by creating a file in your pages directory named: pages/post/[pid].js!
npm i next@latest
npm install --save graphql
https://github.com/apollographql/react-apollo/blob/master/Changelog.md
React Apollo testing utilities are no longer available as part of the react-apollo package. They should now be imported from the new @apollo/react-testing package.
compose utilities have been removed
https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md
###New to add:
Model:
https://www.apollographql.com/docs/react/essentials/get-started/
##Backend
No idea why this is such an early version in the starter files. Might anticipate some version dependency issues.
Now at 1.18.1
Now at: 1.34.5
? Set up a new Prisma server or deploy to an existing server? Demo server + MySQL database
? Choose the region of your demo server robert-tyree/demo-us1
? Choose a name for your service Booknote
? Choose a name for your stage dev
? Select the programming language for the generated Prisma client Don't generate
Created 2 new files:
prisma.yml Prisma service definition
datamodel.prisma GraphQL SDL-based datamodel (foundation for database)
Next steps:
1. Deploy your Prisma service: prisma deploy
2. Read more about deploying services:
http://bit.ly/prisma-deploy-services
https://www.prisma.io/docs/reference/prisma-servers-and-dbs/prisma-servers/overview-eu2ood0she
Prisma sandboxes are rate limited:
10 requests per 10 seconds (on average)
If this rate is exceeded, requests are being queued in memory. If this queue exceeds 25 requests, an error is returned immediately.
The header field throttled-by is included in HTTP responses. It indicates how long the request was delayed due to throttling (in milli seconds).
The upper bound in storage capacity for a Prisma API that's running in a Sandbox is 100 MB.
Maybe use Bos starter files
Definitely look at how they’re set up
Probably want to version bump things…
Next, Prisma, Yoga
Does he have eslint and prettier configs?
Rename Page component to Layout?
Pick up with Prisma Client: https://www.prisma.io/docs/understand-prisma/prisma-basics-datamodel-client-and-server-fgz4/#prisma-client
Rolled back the CLI to match the server version, but somehow the deploy hook isn't picking up the new CLI version.
Current warning:
➜ backend git:(master) ✗ npm run deploy
> [email protected] deploy /Users/tyree/Sites/book-note/backend
> prisma deploy
Warning: Your Prisma server and Prisma CLI are currently out of sync. They should be on the same minor version.
Prisma CLI version: prisma/1.34.5 (darwin-x64) node-v10.16.1
Prisma server version: 1.32.0-beta
For further information, please read: http://bit.ly/prisma-cli-server-sync
Deploying service `Booknote` to stage `dev` to server `prisma-us1` 1.5s
Service is already up to date.
post-deploy:
-
- project prisma - No changes
Running graphql get-schema -p prisma...
project prisma - No changes
Running graphql get-schema -p prisma ✔
➜ backend git:(master) ✗ prisma -v
Prisma CLI version: prisma/1.32.0-beta (darwin-x64) node-v10.16.1
Prisma server version: 1.32.0-beta
Previous warning:
Warning: Your Prisma server and Prisma CLI are currently out of sync. They should be on the same minor version.
Prisma CLI version: prisma/1.34.5 (darwin-x64) node-v10.16.1
Prisma server version: 1.32.0-beta
For further information, please read: http://bit.ly/prisma-cli-server-sync
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.