Rails app generated with lewagon/rails-templates, created by the Le Wagon coding bootcamp team.
Source code of this simple chat app ✨
Check the live version here ⚡️
- PostgreSQL DB
- Bootstrap Styles
- Redux state control
- Rails backend
- React icons
- Action Cable
Make sure you have the latest rails
installed, on a Ruby 2.4+ environment:
rbenv versions # Do you have 2.4+? gem install rails rails -v # Do you have 5.1+?
Install dependencies:
npm install
# or
yarn
Then, run the development server:
npm run dev
# or
yarn dev
Seed:
Create a db/seeds.rb
file which:
- Destroy messages, users and channels (in that order)
- Create some channels (general, paris, react for instance)
- Create some users (needs email / password)
- Create some messages in several channels.
Then run it:
rails db:migrate
Open http://localhost:3000 with your browser to see the result.