React PWA app for the Kudo-o-matic platform!
Backend: https://github.com/kabisa/kudo-o-matic
- 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)
- 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 thedist/
directory. - To run all tests, run
yarn test
.
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.
REACT_APP_API_BASE_URL
: The URL of the kudo-o-matic backend.
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
The frontend application requires no special action to make the Slack integration work. See the back-end docs for more information.
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).
-
Option 1
- Fork this repo
-
Option 2
- Clone this repo to your local machine using
https://github.com/kabisa/kudos-frontend.git
.
- Clone this repo to your local machine using
- HACK AWAY!
- Open a new pull request
Stefan Pahlplatz |
---|
github.com/stefanpahlplatz |
- MIT license
- Copyright 2018 © Kabisa B.V..