git clone https://github.com/TechAtNYU/intranet
cd intranet
npm install
The application is 100% front-end (Angular 1.2) and runs using the http-server
package.
Start the HTTP server with:
npm start
Navigate to
localhost:3000
If you try to use 127.0.0.1:3000
, it will tell you that you are unauthorized.
- Staging site builds from the
develop
branch - Remember to change the API url from
https://api.tnyu.org/v3
tohttps://api.tnyu.org/v3-test
inapp/js/app.js
–RestangularProvider.setBaseUrl
The application uses Karma + Jasmine for unit testing and by default executes using PhantomJS. Unit tests can be found in /test/unit
.
Start the unit-test server with:
npm test