Giter Club home page Giter Club logo

ukrmaxim / chatroom Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 163 KB

An educational application where a user without registration can create a "room" for communication. You can send a link to this "room" to a friend and he will also be able to enter into correspondence.

Home Page: https://git.heroku.com/ukrchatroom.git

Ruby 65.17% JavaScript 14.92% HTML 18.59% Makefile 0.51% SCSS 0.81%
rails bootstrap webpack actioncable turbolinks javascript websockets

chatroom's Introduction

ChatRoom

An educational application where a user without registration can create a "room" for communication. You can send a link to this "room" to a friend and he will also be able to enter into correspondence.

Upon entering the site, a username is generated automatically. Users can delete their created rooms.

PostgreSQL is used as a powerful, open source object-relational database system.

For the development of the frontend, used bootstrap 5.0 and webpacker 5.

Ruby and Ruby on Rails version

  • Ruby 3.0.0

  • Rails 6.1.3

The main gems used in the application:

redis - in-memory data structure store, used as a database, cache, and message broker;

faker - easily generate fake data: names, addresses, phone numbers, etc;

turbolinks - makes navigating your web application faster;

Deploy app local

Note: all commands must be run from the command line/terminal, from the directory, where you clone repository

  1. Download or clone repository, then run bundler
bundle exec install
  1. To create a database, run
rails db:schema:load
  1. Credentials setup

For the application to work correctly in a production environment, add the following keys and their values to your credentials.yml.enc file:

EDITOR=nano rails credentials:edit
redis:
  redis_url:

production_db:
  database:
  username:
  password:

Deploy on Heroku

  1. Attach Heroku Redis to an application via the CLI:
heroku addons:create heroku-redis:hobby-dev -a your-app-name
  1. Add your master.key to Heroku Config Vars
heroku config:set RAILS_MASTER_KEY=123456789
  1. Config production enviroment

Change the options config.action_cable.url and config.action_cable.allowed_request_origins in config/environments/production.rb with a URL to your app on Heroku.

  1. Deploy app on Heroku
git push heroku master

How to run app

To start the Rails server, type

rails s

chatroom's People

Contributors

ukrmaxim avatar

Watchers

 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.