Skip to content

Commit 55ad73c

Browse files
author
Donatas Stundys
committed
Initial commit
0 parents  commit 55ad73c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+17141
-0
lines changed

.eslintrc.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extends": "airbnb",
3+
"parser": "babel-eslint",
4+
"env": {
5+
"browser": true
6+
},
7+
"plugins": ["graphql"],
8+
"rules": {
9+
"comma-dangle": ["error", "never"],
10+
"import/prefer-default-export": ["off"],
11+
"jsx-a11y/click-events-have-key-events": ["off"],
12+
"jsx-a11y/anchor-is-valid": ["off"],
13+
"graphql/template-strings": ["error", { "env": "apollo" }],
14+
"object-curly-newline": ["off"],
15+
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
16+
"react/jsx-one-expression-per-line": ["off"],
17+
"semi": ["error", "never"]
18+
}
19+
}

.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

.graphqlconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"projects": {
3+
"Realworld": {
4+
"schemaPath": "schema.graphql",
5+
"extensions": {
6+
"endpoints": {
7+
"default": "http://localhost:3000/graphql"
8+
}
9+
}
10+
}
11+
}
12+
}

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# ![RealWorld Example App](logo.png)
2+
3+
> ### React Apollo codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld) spec and GraphQL API.
4+
5+
### [Demo](https://realworld-react-apollo.herokuapp.com/)    [RealWorld](https://github.com/gothinkster/realworld)
6+
7+
This codebase was created to demonstrate a fully fledged fullstack application built with React + Apollo including CRUD operations, authentication, routing, pagination, and more.
8+
9+
# Getting started
10+
11+
You can view a live demo over at https://realworld-react-apollo.herokuapp.com/
12+
13+
To get the frontend running locally:
14+
15+
1. Clone this repo
16+
2. `npm install` to install required dependencies
17+
3. `npm start` to start the development server
18+
19+
### Making requests to the backend API
20+
21+
For convenience, we have a live GraphQL API server running at https://realworld-graphql.herokuapp.com for the application to make requests against. You can view [the GraphQL API spec here](https://github.com/dostu/rails-graphql-realworld-example-app/blob/master/GRAPHQL_API_SPEC.md) which contains the schema for the server.
22+
23+
The source code for the backend server (available for Ruby on Rails) can be found in the [this repo](https://github.com/dostu/rails-graphql-realworld-example-app).
24+
25+
If you want to change the API URL to a local server, simply set `REACT_APP_GRAPHQL_URL` env variable to another URL.
26+
`REACT_APP_GRAPHQL_URL=http://localhost:3000/graphql yarn start`

logo.png

52.2 KB
Loading

0 commit comments

Comments
 (0)