https://github.com/mikeludemann/graphql-tutorial
A tutorial with graphql and more
https://github.com/mikeludemann/graphql-tutorial
apollo backend frontend graphql nodejs react react-dom react-redux react-router redux
Last synced: 2 months ago
JSON representation
A tutorial with graphql and more
- Host: GitHub
- URL: https://github.com/mikeludemann/graphql-tutorial
- Owner: mikeludemann
- License: mit
- Created: 2019-07-02T11:55:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-06T10:22:31.000Z (almost 7 years ago)
- Last Synced: 2025-03-28T02:48:59.707Z (about 1 year ago)
- Topics: apollo, backend, frontend, graphql, nodejs, react, react-dom, react-redux, react-router, redux
- Language: JavaScript
- Size: 525 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Graphql Tutorial
A tutorial with graphql and more
## Prerequisite
Install dependencies
```
(sudo) npm install -g prisma
```
## Starting - Frontend
### React App
* Location: localhost:3000
```
yarn start
```
or
```
npm start
```
## Starting - Backend (Server)
### Graphql
* If 'server' - directory not exist
```
curl https://codeload.github.com/howtographql/react-apollo/tar.gz/starter | tar -xz --strip=1 react-apollo-starter/server
```
* Next steps
```
cd server/
yarn install
yarn prisma deploy
```
#### Information - Step 3
* Set up a new Prisma server or deploy to an existing server?
* Demo server + MySQL database
* Choose the region of your demo server
* demo-eu1
* demo-us1
* Choose a name for your service
* server
* Choose a name for your stage
* dev
* Connect your github-account with prisma
* Your 'endpoint' in 'prisma.yml' will be update
### Start the graphql playground
* Location: localhost:4000
```
cd server/
yarn start
```