Git Product home page Git Product logo

confab-ws's Introduction

confab-ws

React App housed in client/

Express server housed in /

Running locally

Run npm install both in the / and client/ directories.

To run server and client together: in root directory, npm run dev

To run server by itself: in root directory, npm run build then npm start

To run client by itself: in root directory, npm run client

To deploy

First, cd client and npm run build

Then, in root directory,

git add .

git commit -m "something"

To deploy internally:

git push staging main OR git push origin main (visible at https://confab-internal.herokuapp.com/)

Pushing to main automatically deploys to internal branch.

To deploy to production:

git push heroku main (visible at https://confab.bigmesslabs.com)

confab-ws's People

Contributors

adwithmukherjee avatar champaniudayangani avatar kvudata avatar

Watchers

 avatar

confab-ws's Issues

all channels lost when server restarts

Looks like we're storing the channels in memory[1].

Heroku can randomly restart dynos[2] resulting in all channels being lost and presumably a service disruption - we should be using an external storage for this data e.g. firestore (my slight pref) or redis[3]

[1] https://github.com/Big-Mess-Labs/confab-ws/blob/7503ece8f0ba44319e16b0be82a08f0b20656b0f/sockets/index.ts#L6-L8
[2] https://stackoverflow.com/questions/26665364/controlling-herokus-random-dyno-restarts
[3] https://elements.heroku.com/addons/heroku-redis

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.