/partyline_chat

Exploratory work to write a chat widget in React

Primary LanguageJavaScript

partyline

A chat application written in React for the PartyLine project at OnShift

Getting Started

Clone this repo.

npm scripts

Install the npm packages using:

$ npm install

Dev

$ npm run dev

This runs a development mode server with live reload etc.

Open http://localhost:8080 in your browser.

Production

$ npm run build
$ npm start

This runs a production-ready express server that serves up a bundled and minified version of the client.

Open http://localhost:8080 in your browser.

Tests

Single Run

$ npm run test

Watch Files

$ npm run test:watch

Coverage

$ npm run cover

Connecting to remote APIs

Both the devmode and production servers provide a way to proxy requests to remote HTTP APIs. This can be useful for working around CORS issues.