Skip to content

yokolet/textblog

Repository files navigation

README

  • What is this

This is a text only blog application. People can see posts and comments. If you sign in, you can add a new post and comment. If the post is your own, you can edit and delete the post. If the comment is your own, you can delete the comment.

  • App structure

This app consists of two parts, the server side and client side. The server side is by GraphQL gem, Rails, and PostgreSQL. The client side is by React/Redux, Apollo. This app uses Rails' webpacker feature, so it doesn't need a client side server.

User authentication is done by OAuth, social login. This app uses a client side OAuth flow. ReactJS component connects to social login OAuth provider and gets an access token. The access token is passed to the server attached to Authorization HTTP header when people do the actions of add, edit, delete. The access token is used to find who you are. Other than those actions, say, just looking at posts, user authentication is not required.

Communication between server and client is done by GraphQL. Apollo is a package for ReactJS to send/receive GraphQL request/response.

About

Rails, React, Redux, GraphQL and OAuth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published