Coder Social home page Coder Social logo

sumitwarrior7 / embeddedchat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rocketchat/embeddedchat

0.0 0.0 0.0 6.39 MB

An easy to use full-stack component (ReactJS) embedding Rocket.Chat into your webapp

Home Page: https://www.npmjs.com/package/@embeddedchat/react

JavaScript 81.08% TypeScript 12.05% CSS 5.67% HTML 1.19%

embeddedchat's Introduction

EmbeddedChat

An easy to use full-stack component (ReactJS + backend behaviors) embedding Rocket.Chat into your webapp.

EmbeddedChat is a full-stack React component node module of the RocketChat application that is fully configurable, extensible, and flexible for use. It is tightly bound with the RocketChat server using Rocket.Chat nodejs SDK and its UI using RocketChat's Fuselage Design System.

embeddedchatwall

Installation and Usage

Installtion and usage documentation could be found here EmbeddedChat installation and usage

Development

Local Setup

To develop and test EmbeddedChat, a local instance of Rocket.Chat server is necessary. For setting up a Rocket.Chat development environment, follow the guide provided at Rocket.Chat GitHub Repository.

Prerequisites

  • Node.js: Version 16.19.0 is required. Use Node Version Manager (NVM) for easy switching between Node.js versions.

    To install and use the correct Node.js version, execute:

    nvm install
    nvm use
  • Yarn Workspaces: Ensure Yarn workspaces are enabled. If not, run:

    corepack enable

Install Dependencies

Install all necessary dependencies and build the packages (auth, api, and react) with:

yarn

Starting Storybook for React

Navigate to the react package and start Storybook:

cd packages/react
yarn storybook

Storybook should now be operational. Experiment with EmbeddedChat and its components, observing real-time changes in Storybook.

Custom Rocket Chat Server Configuration

By default, Storybook connects to http://localhost:3000. To use a different Rocket Chat server:

  • Create a .env file in the packages/react directory.

  • Set the STORYBOOK_RC_HOST variable:

    STORYBOOK_RC_HOST=<your-custom-url>

    Alternatively, run this command in the packages/react directory:

    STORYBOOK_RC_HOST=<your-custom-url> yarn storybook

Working with API and Auth Packages

Auth Package Development

To develop and test changes in the auth package:

  1. Navigate to the auth package directory.

  2. Start the playground server:

    cd packages/auth
    yarn dev

API Package Development

For development in the api package:

  1. Navigate to the api package directory.

  2. Start the playground server:

    cd packages/api
    yarn dev

Note: The react package depends on the api package. After making changes to api, rebuild it with yarn build in package/api, and then restart the react projects.

Similarly, the api package depends on the auth package. After changes to auth, rebuild it with yarn build in package/auth, and then restart the api development environment.

Conclusion

This setup provides a comprehensive environment for developing and testing the EmbeddedChat component, along with its associated api and auth packages. Enjoy exploring and enhancing the capabilities of EmbeddedChat!

Contributors

embeddedchat's People

Contributors

abhinavkrin avatar akshun-01 avatar anjy7 avatar ayush3160 avatar culturalprofessor avatar dev-code24 avatar honey-grapes avatar imf-ali avatar kamlesh72 avatar komaldewnani avatar kushalsr avatar mdahsanfaraz avatar rahulnavneeth avatar rec0il99 avatar ronlek avatar sahilsekr42 avatar samad-yar-khan avatar sayan4444 avatar sidmohanty11 avatar sing-li avatar skb231 avatar spiral-memory avatar sumitwarrior7 avatar tanu-chahal avatar umangutkarsh avatar venomfate-619 avatar vipindevelops avatar vishakha-aggarwal avatar wrth1337 avatar yashraj7890 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.