Giter VIP home page Giter VIP logo

booknote's People

Contributors

dependabot[bot] avatar tyreer avatar

Stargazers

 avatar

Watchers

 avatar  avatar

booknote's Issues

Research starter files

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?

Setup Prisma DB workspace

image

? 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

Assess major version bumps since Bos starter files

Frontend

  • Starter files: "react": "^16.5.2",
    • Now at: 16.9.0

npm install --save react@^16.9.0 react-dom@^16.9.0

  • "apollo-boost": "^0.1.16",

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.

  • Starter files: ”next": "^7.0.0",
    • Now at: 9.0.3

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

  • "next-with-apollo": "^3.1.3",
  • Starter files: "graphql": "^14.0.2",
    • Now at 14.4.2

npm install --save graphql

  • Starter files: “react-apollo": "^2.2.1",
    • Now at 3.0.0 

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

  • "apollo-client": "^2.4.2",
    • Now at: Apollo Client (2.6.3)

https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md

###New to add:

  • @apollo/react-hooks

Model:

https://www.apollographql.com/docs/react/essentials/get-started/

##Backend

  • "graphql": "^0.13.2",
    • Now at 14.4.2

No idea why this is such an early version in the starter files. Might anticipate some version dependency issues.

  • Starter files: "graphql-yoga": "1.16.2",

Now at 1.18.1

  • Starter files: "prisma": "1.17.1",

Now at: 1.34.5

https://github.com/prisma/prisma/releases

Adress Prisma version sync

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

Migrate off of Prisma sandbox server

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.