This project was generated with angular-cli version 1.2.0.
To build it, first install the @angular/cli package, and then install the local dependencies:
npm install -g @angular/cli
npm installTo see a live version of the site during development, simply use the ng serve command.
A production version of ångstromCTF, ready for deployment, can be built with ng build --prod --aot --env=prod. upload.sh automagically build this site and uploads it to the production server!
The Angular source code is laid out in src/app in the following way:
apiis autogenerated code that interacts with the djangoCTF API, running onhttps://angstromctf.com/api. This is generated byrebuild_api.sh; usually, you shouldn't edit it.contentis static pages with normal website content (e.g. the index page).libis miscellaneous Angular objects used throughout the code.problemsis pages that deal with the contest problems.stylesis Sass code detailing the website's main styles.teamsis pages that deal with displaying information about teams in the competition.usersis pages that deal with user authentication and team formation.utilsis Angular services that form part of the website's GUI.
In general, website pages correspond to Angular components. Each component has a .component.ts file, which is the dynamic JavaScript piece of the page, and a .component.html file, which is the static HTML template. Additionally, some components have specific Sass stylings, which are located in .component.scss files.