Skip to content

topcoder-platform/submission-review-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Topcoder - Submission Review App UI

Requirements

Node.js 10.15+

Dependencies

To install dependencies run

npm install

Configuration

You 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 connector
  • ACCOUNTS_APP_LOGIN_URL: The url of Accounts app login page
  • COMMUNITY_APP_URL: The base url of community app
  • MEMBER_API_URL: v3 members api endpoint
  • ARENA_URL: The url of Topcoder Arena
  • DEV_APP_URL: (Development) The URL to start the app from (eg http://local.topcoder-dev.com)
  • SUBMISSION_REVIEW_API_URL: The submission review API URL
  • V5_API_URL: The V5 API URL,
  • FILESTACK_API_KEY: The filestack api key
  • FILESTACK_SUBMISSION_CONTAINER: the S3 container to which filestack needs to upload the file to
  • FILESTACK_REGION: The aws region. Defaults to us-east-1

Development

To run the app in development mode run

npm run dev

You 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

Lint check

To test the app for lint errors

npm run lint

Use the --fix flag to automatically fix errors.

Production

To build the app for production

npm run build

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.

If you want to test to production build locally you can run

npm install -g serve
serve -s build

It serves the build folder locally.

Heroku Deployment

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 master

You can access the app by running

heroku open

About

Submission Review App UI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages