npm install react-app-rewired
/Wildbook
npm install
chmod +x .husky/pre-commit
to enable husky pre-commit hooksWildbook/frontend/
,npm install
to install all dependencies.env
for React environment variables under the root of REPO/frontend/
. In this file:
PUBLIC_URL=http://localhost:81/react/
(or whatever port your local server is running on). For public deployment, use the following, where public.url.example.com
is your deployed URL: PUBLIC_URL=https://public.url.example.com/react/
SITE_NAME=Amphibian Wildbook
react
under deployed wildbook/
dirIf you have your dev environment set up correctly, this will build the React app and copy it into your local deployment directory for you.
REPO/frontend/
npm run deploy-dev
http://localhost:81/react/
for local testing or https://public.url.example.com/react/
for the public-facing deploymentREPO/frontend/
and run npm run build
frontend/build/
to the deployed wildbook/react/
directory you created during setuphttp://localhost:81/react/
for local testing or https://public.url.example.com/react/
for the public-facing deployment