1/ Install docker and Prisma cli. (https://www.prismagraphql.com/docs/quickstart/backend/node/node-phe8vai1oo)
2/ In 3 different terminals:
# Prisma: Graphql and mySql (port 4000)
cd server
yarn install
yarn start# Backend: ExpressJs (port 8000)
cd express
yarn install
yarn start# Front: ReactJs (port 3000)
cd react
yarn install
yarn startGo to url: http://localhost:3000
- Scalable GraphQL server: The server uses
graphql-yogawhich is based on Apollo Server & Express - Pre-configured Apollo Client: The project comes with a preconfigured setup for Apollo Client
- GraphQL database: Includes GraphQL database binding to Prisma (running on MySQL)
- Tooling: Out-of-the-box support for GraphQL Playground & query performance tracing
- Extensible: Simple and flexible data model – easy to adjust and extend
- No configuration overhead: Preconfigured
graphql-configsetup
For a fully-fledged React & Apollo tutorial, visit How to GraphQL. You can more learn about the idea behind GraphQL boilerplates here.
You need to have the GraphQL CLI installed to bootstrap your GraphQL server using graphql create:
npm install -g graphql-cliMore details in the tuto: https://github.com/graphcool/prisma/tree/master/examples/auth
-
prisma local nuke -
prisma reset -
prisma local startto start your local Prisma cluster. -
yarn startstarts GraphQL server onhttp://localhost:4000 -
yarn devstarts GraphQL server onhttp://localhost:4000and opens GraphQL Playground -
yarn playgroundopens the GraphQL Playground for theprojectsfrom.graphqlconfig.yml -
yarn prisma <subcommand>gives access to local version of Prisma CLI (e.g.yarn prisma deploy)
Note: We recommend that you're using
yarn devduring development as it will give you access to the GraphQL API or your server (defined by the application schema as well as to the Prisma API directly (defined by the Prisma database schema. If you're starting the server withyarn start, you'll only be able to access the API of the application schema.
Your feedback is very helpful, please share your opinion and thoughts! If you have any questions or want to contribute yourself, don't hesitate!
- Implement materials https://material-ui-next.com/
- Implement Apollo Client 2.0
- Send emails: Welcome emails
- change/Reset password. send email confirmation
- Organize logo image in readMe
- Write medium post
- Upload all filetypes. A logo of a file will appear instead of picture
- Use File Handling instead of express to upload file: https://github.com/graphcool/prisma/tree/master/examples/file-handling-s3