Node.js 10.15+
To install dependencies run
npm installYou can see the configuration paramaters below.
Production configuration is in config/constants/production.js
Development configuration is in config/constants/development.js
ACCOUNTS_APP_CONNECTOR_URL: The url of Accounts app connectorACCOUNTS_APP_LOGIN_URL: The url of Accounts app login pageCOMMUNITY_APP_URL: The base url of community appMEMBER_API_URL: The members api endpointARENA_URL: The url of Topcoder ArenaDEV_APP_URL: (Development) The URL to start the app from (eg http://local.topcoder-dev.com)V5_API_URL: The challenge API URLSUBMISSION_REVIEW_API_URL: The submission review API URL
To run the app in development mode run
npm run devYou can access the app from http://localhost:3000
The page will reload if you make edits.
You will also see any lint errors in the console.
NOTE: Redirection from login page doesn't work with localhost urls because account app doesn't allow it,
in order to test it you can add 127.0.0.1 local.topcoder-dev.com to your /etc/hosts file and access the app from
http://local.topcoder-dev.com:3000 address
To test the app for lint errors
npm run lintUse the --fix flag to automatically fix errors.
To build the app for production
npm run buildBuilds 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.
If you want to test to production build locally you can run
npm install -g serve
serve -s buildIt serves the build folder locally.
To deploy the app on heroku run
git init
heroku create tc-submission-review-app --buildpack mars/create-react-app
git add .
git commit -m "Heroku commit"
git push heroku masterYou can access the app by running
heroku open