Version 2 of the event page for Tech@NYU DemoDays in NYC. Live at demodays.co
Originally built with Jekyll, but started using AngularJS because it was a more reliable front-end. The site uses the following technologies:
- AngularJS
- Sass
- Gulp
- Bootstrap
- Restangular
demodaysbecomes a variable for theangular.module- Restangular
- Used twice.
- Base url is the general api (v3)
- The default headers is for avoiding security issues
- The response interceptor is for retrieving the API data
- First use of Restangular
- Gets the DemoDays events and sorts it such that the most recent event is shown first. This allows easier parsing of data.
- There are five variables:
attributes,relationships, RSVPForm, anddemoForm` because they are used extremely oftenattributes: Make it easier to get the DemoDays informationrelationships: Required for the second Restangular request because the site will make requests to different parts of the APIRSVPForm: Gets the RSVP url since the site uses the RSVP url oftendemoForm: Same idea except for demo urls
- All of the relevant scope variables are in the first Restangular
- Second use of Restangular
- Makes a call to venues
- Nested within the first Restangular because it uses attributes needed from first call
- The ending of both Restangular uses are indicated in the comment
/\* Ignore this for now \*/- Features that have yet to be implemented because the API doesn't support it yet
- Code Aesthetics
- Indicate which Strings need to be sanitized
- If you have a long block, indicate where it closes
- File notes
controllers.jshave all the calls to the APIindex.jshas the jQuery and other Javascript