Giter VIP home page Giter VIP logo

reactchat's Introduction

React Chat

A chat app built with React.js and ActionCable in Ruby on Rails 5.1, built as part of a 2-part tutorial on Learnetto:

How to build a chat app with Rails 5.1 ActionCable and React.js Part 1

How to build a chat app with Rails 5.1 ActionCable and React.js Part 2

See a live demo here

Run the following commands on the commandline to get it working:

git clone https://github.com/learnetto/reactchat.git

cd reactchat

rails db:migrate

bundle && yarn

foreman start -f Procfile.dev

Github Authentication

We use Github for authentication. So you will need to register a new OAuth application on Github.

Please make sure you set the authorization callback URL correctly. With the default devise and omniauth settings, add /users/auth/github/callback to your root URL.

For example, in development, if your app is running on localhost port 3000, then the URL settings will be:

Homepage URL: http://localhost:3000

Authorization callback URL: http://localhost:3000/users/auth/github/callback

Once you've set up your Github app, Github will provide you with a Client ID and secret. You need to add these to your app's environment as GITHUB_APP_ID and GITHUB_APP_SECRET.

For development, the easiest way is to put them in your ~/.bash_profile, start a new terminal window and restart your Rails server.

Running test

cd client && bundle exec rake react_on_rails:locale && yarn run build:test
bundle exec rake

reactchat's People

Contributors

hrishimittal avatar eric-guo avatar

Watchers

James Cloos avatar  avatar  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.