This is a sample project for comparison of Angular and Aurelia frameworks for this article from habrahabr.ru
To run apps locally, follow these steps:
-
Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
-
Ensure that jspm is installed. If you need to install it, use the following command:
npm install -g jspm
Note: jspm queries GitHub to install semver packages, but GitHub has a rate limit on anonymous API requests. It is advised that you configure jspm with your GitHub credentials in order to avoid problems. You can do this by executing
jspm registry config github
and following the prompts.
- Ensure that http-server is installed. This provides the server on which the app runs. If you need to install it, use the following command:
npm install -g http-server
- Ensure that TypeScript is installed. This provides the ability to compile application code to plain JavaScript. If you need to install it, use the following command:
npm install -g typescript
- Run angular2 app
- From the "angular2" folder under the project root, execute the following command:
```shell
npm install
```
- From the same "angular2" folder execute the following command:
```shell
npm start
```
This will build the app and run http server to http://localhost:3333
- Run aurelia app
- From the "aurelia" folder under the project root, execute the following command:
```shell
jspm install -y
```
- From the same "aurelia" folder execute the following command:
```shell
npm start
```
This will run http server to http://localhost:4444