App for Members Search.
Compile and launch your app by running:
$ yarn start # Compiles the app and opens it in a browser with "live reload"
You can also test your app in release (production) mode by running yarn start -- --release
or
with HMR and React Hot Loader disabled by running yarn start -- --no-hmr
. The app should become
available at http://localhost:8080/.
The unit tests are powered by chai and mocha.
$ yarn lint # Check JavaScript and CSS code for potential issues
$ yarn test # Run unit tests. Or, `yarn run test:watch`
Make sure the API is running and database is populated before starting. If you need to test API changes on staging or live, rename .env.default
to .env
and update the url.
You may need to install and older version of node in order to run yarn
. You can use n
to install version 10.15.0
.
If you need to build the project without publishing it, simply run:
$ yarn build # Compiles the app into the /public/dist folder
To push changes live, run the following after building the project:
$ aws s3 cp ./public/app.css s3://members-search-app/app.css
$ aws s3 cp ./public/dist/main.*.js s3://members-search-app/app.js