-
Notifications
You must be signed in to change notification settings - Fork 38
Web Arena Setup Guide For CentOS 6.x
##1. Overview Topcoder has a Web Arena for Single Round Match contests. This is client-side of the application. This is an independent Single Page Application built on AngularJS with bootstrap responsive UI which communicates with the Java backend over HTTP using socket.io and other APIs.
##2. Application Structure The application follows directory structure provided below:
- app – contains the source code of application
- config – contains the configuration file for linux and windows
- new_relic – contains files required for integration with new relic server monitor
- thirdparty – contains thirdparty plugins used in the applications
- Gruntfile.js – the Grunt configuration file
- package.json – the nodejs configuration file
- bower.json – the bower configuration file
- Procfile, heroku.js – configuration related to Heroku platform
- .git files* – files related to git required to checkout dependency sources
##3. Configuration## Even though this is a client-side app, most of the properties of this application are configurable. As we still try to follow 12factor, the configuration variables are expected to be set as environment variables. Values of the properties are present in the scripts inside config folder, and will be substituted into the app/js/config.js file on build.
For this reason before running build, we need to execute the linux or windows script inside config folder based on the platform to set the environment variables.
- NodeJS
- Grunt
- Bower
- AngularJS
- Git
https://github.com/appirio-tech/arena-web
Make sure you ask for access to this repository in the discussion forum of your project.
##6. VM Environment
Upon registration as a submitter or reviewer you will need to request an Arena VM in order to make Web Arena functioning properly. To request your image, please post in contest forum.
Before requesting your VM, you need to ensure that you have an SSH key created and in your member profile. Instructions to do so are here:
http://www.topcoder.com/wiki/display/projects/Generate+SSH+Key,
And instructions to connect afterwards are here:
http://www.topcoder.com/wiki/display/projects/Connect+Using+SSH+Key.
Once you get your VM IP, you need to add the following line in your hosts file as shown in section 7.13
<<vm-ip>> tc.cloud.topcoder.com
- Update software repository to the latest versions: