Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.41 KB

CONTRIBUTING.md

File metadata and controls

66 lines (44 loc) · 1.41 KB

Testing and developping Hyperglosae frontend

Install dependencies

npm install

Run in development mode

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you update code in src.
You may also see any lint errors in the console.

The frontend is coded in JavaScript with the React framework (see documentation).

Install test tools

Get the name of your shell (bash, zsh, etc.):

ps

Depending on your shell, add this function to ~/.bashrc, ~/.zshrc, or other:

function cucumber() {
  (docker run --rm -v "$(pwd)":/app --tty --net="host" --env APP_HOST="http://host.docker.internal:3000" benel/cucumber-capybara "$@")
}

Start a new terminal and test the following command:

cucumber --help

Run tests

From the main folder of Hyperglosae, type the following command:

cucumber --fail-fast --quiet

Run in pre-production mode

npm run build
npm run preprod

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed! Open http://localhost:3000 to view it in your browser.