Giter Club home page Giter Club logo

naperg's Introduction

Node Apollo Prisma Express React GraphQL
 

Boilerplate for a Fullstack GraphQL App with React & Prisma

Authentication with permissions & roles. Backend & Frontend

Upload image with expressJs


image

🚀 Bootstrap your fullstack GraphQL app within seconds
Basic starter kit for a fullstack GraphQL app with React and Node.js - based on best practices from the GraphQL community.

Screenshots

Mobile Friendly Demo
Mobile friendly Demo NAPERG
Order by / pagination Email Validation
Mobile friendly image
image FORGET PASSWORD image
Users List User
image image
Login Resend Link to validate email
Login Link to validate email

Getting started

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 start

Go to url: http://localhost:3000

Features

  • Scalable GraphQL server: The server uses graphql-yoga which 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-config setup

For a fully-fledged React & Apollo tutorial, visit How to GraphQL. You can more learn about the idea behind GraphQL boilerplates here.

Requirements

You need to have the GraphQL CLI installed to bootstrap your GraphQL server using graphql create:

npm install -g graphql-cli

More details in the tuto: https://github.com/graphcool/prisma/tree/master/examples/auth

Documentation

Commands

  • prisma local nuke

  • prisma reset

  • prisma local start to start your local Prisma cluster.

  • yarn start starts GraphQL server on http://localhost:4000

  • yarn dev starts GraphQL server on http://localhost:4000 and opens GraphQL Playground

  • yarn playground opens the GraphQL Playground for the projects from .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 dev during 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 with yarn start, you'll only be able to access the API of the application schema.

Contributing

Your feedback is very helpful, please share your opinion and thoughts! If you have any questions or want to contribute yourself, don't hesitate!

To do

  • ✓Implement materials https://material-ui-next.com/
  • ✓Send emails: Welcome emails
  • ✓Send emails: Forget Password
  • ✓Send emails: validate Email
  • ✓change/Reset password. send email confirmation
  • ✓Organize logo image in readMe
  • Create 3 Screenshots GIFS. Mobile friendly / auth / Post
  • Implement Apollo Client 2.0
  • 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

naperg's People

Contributors

alan345 avatar niwaa avatar

Watchers

James Cloos avatar BELLO MUSA avatar

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.