Sign inSign up

bptlab/argos-frontend

By bptlab

•Updated about 9 years ago

Argos Frontend

Image
2

50K+

bptlab/argos-frontend repository overview

⁠Argos frontend

GitHub license GitHub release

Quality Gate developer branch Build Status

⁠Requirements

  • node & npm

⁠Configuration

To configure argos-frontend simply access src/config/argosConfig.js

⁠Development

⁠Quick Start
⁠Development Environment
  1. Set the intendation inside the IDE of your choice to:
    • tabs, smart tabs
    • tab size 4
    • indent 4, continuation indent 4

⁠Conventions

⁠Git
⁠Feature branch naming

Branches are named in this style: BP_[JIN]_[DWU]

  • JIN = Jira issue number
  • DWU = Story description with underscores
⁠Code Structure
⁠Break component initialisations

If initialising a component with more than two parameters, insert a linebreak after the components name and each parameter.

Right

<EventTable
	header={this.state.activeEventType.attributes}
	events={this.state.activeEvents}
	filter={this.state.filter} />

Wrong

<EventTable header={this.state.activeEventType.attributes} events={this.state.activeEvents} filter={this.state.filter} />

⁠Constructor method

Constructor methods should be structured in this way:

  1. Call the parent constructor.
  2. Initialize the components state.
  3. Execute initialisation functions.
  4. Bind this to functions.

⁠Testing

Argos frontend uses ReactTestUtils and Jest to test its components. You can run tests by calling npm test in your cli.

⁠Deployment

Please see the Installation Guide⁠ for explanations.

Tag summary

Content type

Image

Digest

Size

360.8 MB

Last updated

about 9 years ago

docker pull bptlab/argos-frontend