Socket
Socket
Sign inDemoInstall

@ifrc-cbs/reporting

Package Overview
Dependencies
11
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ifrc-cbs/reporting

CBS Reporting frontend React component


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
1.52 MB
Created
Weekly downloads
 

Readme

Source

CBS - Reporting

Standalone webapp running the Reporting bounded context in development mode. An NPM package will externally be published and added in the Navigation module, together with the rest of the bounded contexts.

Building and running

Install dependencies
$ npm install
Run locally

This will start a development server, using Parcel bundler, a faster and no-config alternative to Webpack.

$ npm start
Running NodeJS API server

The NodeJS API server (under development) provides a more fluent Restful API and also makes it much easier to write frontend end-to-end tests (using Nightwatch.js).

To start the server:

$ npm run node:server

Development

...

End-to-end Testing

This project has support for writing automated UI tests using Nightwath.js - an easy to use Node.js based end-to-end testing framework using the Webdriver API or Selenium.

Running the tests

The tests by default will run in Chrome (headless mode). Nightwatch will start/stop ChromeDriver automatically and also start/stop the Parcel development server and NodeJS API server as needed.

The NodeJS API server mocked the calls to the backend and returns JSON output directly, for convenience.

$ npm test

Writing tests

New UI tests should be added to test/src. For more information about writing tests using Nightwatch, please refer to the [Nightwath docs(http://nightwatchjs.org/guide).

Troubleshooting build issues

npm install fails

Sometimes running npm install will fail with unexpected, inexplicable error conditions. The errors are mostly related to babel-cli or npm itself. If this occurs, try the following:

  1. open package.json and delete the line which contains the @ifrc-cbs/common-react-ui dependency (make sure to delete the comma which precedes it);
  2. run npm install;
  3. add the line containing the @ifrc-cbs/common-react-ui dependency back and run npm install again.

Parcel bundler errors

Sometimes, particularly when changes in external components occur, running the development server (with Parcel) can produce errors. You can try:

  1. remove the .cache folder (this is where Parcel keeps its data for faster processing)
  2. restart npm run dev process.

FAQs

Last updated on 16 Jan 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc