[]()
Branch | Build status | Test coverage |
---|---|---|
development | ||
master |
The sample-app is a management of a restaurant. Users will log in in the app, so they can perform some actions on it (always depending on their profile).
4 different views are able to be used/navigated:
There will be 3 kind of users:
As we are developing this sample-app in Angular2, we are forced to use an environment on which TypeScript can be supported, so we use Atom. It allows us to install packages from the environment itself. TypeScript is being the main language on the development of the this application, but also HTML and CSS with angular2 elements. To run our code and to install packages, we've been using the NPM of Nodejs. Finally, the browser we're using is Chrome, which is being very useful not only in running apps, but in debugging as well.
npm install
on CMD. Every dependecy specified on package.json
will be installed.npm start
on CMD will run the proyect, so you'll can see your Application on the browser, located in localhost:4200
.Tests will be use to verify the integrity of the code within a component or with others. The tool we use to fire those tests is Karma, which was developed by the Angular2 team as well. Those tests implemented in Jasmine, a behavior-driven development framework for testing JavaScript code. You can find information about syntax and how they can be implemented in Issue #10 .
Every time we commit to this repository, Travis CI evaluate our code and execute those tests we've implemented. Those files will have the following format:
[component].spec.ts
In order to commit as verified as possible, we also use the npm test
to run tests locally. If they run correctly, we push them to the repo (although "running correctly" may mean that the test is failing, but always compiling).