Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5b7b369

Browse files
authored
Update README.md
1 parent 9e87057 commit 5b7b369

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
This simple app represent an example of how GraphQL queries and mutations can be implemented. I used Movies as entity, and have only implemented Create and Read operations. Rest of operations (update, delete) can be done based on these two.
66

77
<h2> Installation and configuration </h2>
8+
89
What will you need to get this thing running:
910

1011
Ruby: 2.3.1
@@ -31,6 +32,7 @@ Next thing is to put some initial data in your db. I've prepared top 5 rated mov
3132
Run ```rake db:seed``` to populate Movies table, and then ```rails s``` to start server at http://localhost:3000
3233

3334
This project supports both, server-side and client-side rendering. If you want to continue with developemnt of this project I would recommend client-side rendering.
35+
3436
<h4>Option #1: Client-side rendering</h4>
3537

3638
Position yourself to root_folder/client/movie_reactjs_apollo/ and type
@@ -55,12 +57,13 @@ npm run build
5557
and node will do optimization of the files and export reactjs application to public folder of Rails application. Then just start Rails app and you will have server and client running at the same address, http://localhost:3000
5658

5759
<h4>Option #3: Not interested in client app? Not a problem, I've got you covered.</h4>
60+
5861
If you like using [Postman](https://www.getpostman.com/) I have just a thing for you.
5962
In root folder of project there is a file named
6063
```
6164
RailsGraphQL.postman_collection.json
6265
```
63-
that you can import in [Postman](https://www.getpostman.com/) and send requests that I already created for you.
66+
that you can import in Postman and send requests that I already created for you.
6467

6568
But if you prefer using something new, cool and writing queries on your own with help of autocomplete, then just start rails app, open your favorite browser and navigate to http://localhost:3000/graphiql
6669

@@ -70,6 +73,7 @@ By the default for this project graphiql is set to do the quering only, but if y
7073

7174

7275
<h2> A bit more about the project... </h2>
76+
7377
For GraphQL I've used a standard [graphql-ruby](https://github.com/rmosolgo/graphql-ruby) gem. All of GraphQL configuration files can be found in app/models/graph folder.
7478

7579
For communication between client and server this app uses [apollo-client](https://github.com/apollographql/apollo-client).

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /