GithubHelp home page GithubHelp logo

therubick / chat-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from osamanabih/chat-system

0.0 0.0 0.0 83 KB

API for a chat system using Ruby on Rails

Shell 1.26% Ruby 96.20% HTML 0.54% Dockerfile 1.99%

chat-system's Introduction

README

Running Instructions

This project was tested using Docker version 26.0.0

  1. Clone the repo using

    git clone https://github.com/OsamaNabih/chat-system
    
  2. Run the command inside the cloned repo (This may take a while)

    docker compose up --build -d
    

    NOTE The -d flag is for detached mode, which runs the services in the background. Omit to view all the logs in the same terminal.

  3. OPTIONAL If you want some starter dummy data, you can run NOTE: If you ran the up command in the foreground, you'll need to open a new terminal for the following commands.

    docker exec -it rails_server rails db:seed
    
  4. You can use the Postman collection file "chat-system.postman_collection" to facilitate working with the API. You'll find collection variables available for your convenience.

Re-runs

  1. To flush the Redis cache, you can run
docker exec -it redis redis-cli FLUSHALL
  1. To remove all data from Elasticsearch, run the appropriate Request for that in the Postman collection.

About

API built for a chat system using Ruby on Rails, versions 2.7.5 and 5.2.6 respectively. Redis, Elasticsearch, and Sidekiq
The system has Applications, which contains Chats, each Chat has Messages inside of it.
Core functionality is basic CRUD operations for the three resources as well as a Search endpoint that partially matches existing messages for an Application/Chat pair with a user query string.

chat-system's People

Contributors

osamanabih 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.