README.md
September 25, 2024 ยท View on GitHub
Frontend Setup
The frontend is currently split between native tomcat functions, jsp pages, and a react app. New development is targeting a full react app rewrite. This setup is focused on the react specific requirements. However, you must do the full system setup referenced in the development README for these to work.
Build and deploy react-only changes
If you are working on react-only work, you can test your changes without updating the full war file.
Use npm to build and deploy to your local deployment
If you have your dev environment set up correctly, this will build the React app and copy it into your local deployment directory for you.
- cd to
REPO/frontend/ - run
npm run deploy-dev - refresh your browser page by visiting either
http://localhost:81/react/for local testing orhttps://public.url.example.com/react/for the public-facing deployment
Manually build and deploy
- cd to
REPO/frontend/and runnpm run build - copy everything under
frontend/build/to the deployedwildbook/react/directory you created during setup - refresh your browser page by visiting either
http://localhost:81/react/for local testing orhttps://public.url.example.com/react/for the public-facing deployment