#Packit Front End Interface is built with React library
Node 18.
App can be started in the project directory when you run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console. \
To see a working app you will need to run dependencies. From the root directory:
- ./scripts/run-dependencies
- ./api/scripts/run OR ./api/gradlew -p api :app:bootRun
Launches the test runner in the interactive watch mode. Excludes integration tests.
See the section about running tests for more information.
Launches the test runner in the interactive watch mode, running only integration tests.
Dependencies must be running:
- ./scripts/run-dependencies
- ./api/scripts/run
Launches eslint, see eslint for more information.
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!
See the section about deployment for more information.
The app is containerised into an image based on nginx. Note that in deployment this will be proxied, so no security configuration is required here.
./app/scripts/build
builds a docker image../app/scripts/build-and-push
builds and pushes an image to dockerhub. This script is run on CI../app/scripts/run
runs a built image with the current branch name.
Mock Service Worker MSW
MSW is currently used to mock API calls in tests. It is configured in src/setupTests.js
.
However, this can be used as a worker and be able to be if mocking of api is needed whilst development.
Eg. if the api is not ready but you want to test the front end with that contract.