API server, used by the homepage and client. The client itself is also maintained in this repository under ./react-client
# install nvm and setup to use node version defined in .nvmrc
nvm install
nvm use
# install Yarn via your preferred method
yarn install --frozen-lockfile
Note: FontAwesome V5 is required, and will require a subscription to access certain icons.
Requires Node.js v10+
Ideally use node version manager (nvm). Running nvm install && nvm use
should set the version to one best suited for the project, based on .nvmrc
.
Local environment variables are set in nodemon.json
Install via yarn yarn install --frozen-lockfile
cd /working/directory/jumpinchat-deploy
docker-compose -f docker-compose.yml -f local-compose.yml up janus
# run nodemon, output piped to bunyan to format logs
npx nodemon | npx bunyan
At present, the mechanism for deploying the production-ready code is to create an archive containing the compiled code and store it in remote storage. The artifact will then be downloaded and unpacked during the build process of the docker image. This mechanism used a CI server, a locally hosted Jenkins server in my case, which did so on each push to master
.
The scripts for uploading the artifact are located in ./build
client tests are run via npx jest
server tests are run via npm run test
or yarn test
, using mocha.
client storybooks are available by running npm run storybook
, and is set to run at port 6001