Skip to content

kabisa/kudos-frontend

Repository files navigation

Kabisa logo

Node.js CI Maintainability Test Coverage

Kudos-o-Matic Frontend

React PWA app for the Kudo-o-matic platform!

Backend: https://github.com/kabisa/kudo-o-matic

Quick start guide

Prerequisites

  • Node.js >=10 + NPM, for the build system
  • Yarn >= 1, for package management
  • Chrome v59.x or higher to run the tests headless
  • Java 8 (or higher) to run the end-to-end tests (it powers the selenium server)

Development workflow

  • Running yarn install will hook you up with everything you'll need
  • yarn start will start the development server on http://localhost:9090.
  • To create a static HTML5 app build, run yarn build. The app will be built into the dist/ directory.
  • To run all tests, run yarn test.

Environment variables

Create react app will automatically set NODE_ENV and load the correct configuration based on the way you started the application. Running the app with yarn start will set the NODE_ENV to 'development' and running yarn build will use the production config. All environment variables should be prefixed with REACT_APP_. Read more about it here.

Required environment variables

REACT_APP_API_BASE_URL: The URL of the kudo-o-matic backend.

Code formatting

Code formatting and style are enforced using ESLint. You can run the yarn lint:check command to run an analysis. You can use the ESLint auto fix feature by running yarn lint:run

Slack integration

The frontend application requires no special action to make the Slack integration work. See the back-end docs for more information.

CI and deployment

The project is build using GitHub actions with every commit. See the .github directory for the configuration file.

The project is hosted on Netlify and deployed using commit hooks. If you need to access Netlify, please contact Managed Services for bobth environments. The following environments exist:

To deploy a new version, create a new release on GitHub. The release will be automatically deployed to the environments when merging into develop (staging) or master (production).

Contributing

Step 1

  • Option 1

    • Fork this repo
  • Option 2

    • Clone this repo to your local machine using https://github.com/kabisa/kudos-frontend.git.

Step 2

  • HACK AWAY!

Step 3

  • Open a new pull request

Team

Stefan Pahlplatz
Stefan Pahlplatz
github.com/stefanpahlplatz

License

License