Skip to content

aotaduy/angular-example

Repository files navigation

angular-example

Yeoman generated angular fullstack variation with mocha, chai sinon and coverage. As an example of an angular course.

Installation

install git https://git-scm.com/downloads

For Linux

Install nvm (Node Version Manager) https://github.com/creationix/nvm

nvm install 6

then before running the app:

nvm use 6

For Windows

You can use: https://github.com/hakobera/nvmw and then

nvm install 6

the before runn ing the app:

nvm use 6

I haven't tested with newer versions but it should work anyway.

For both envs

npm install grunt-cli bower -g
git clone https://github.com/aotaduy/angular-example.git
cd angular-example
npm install
bower install
npm run update-webdriver

Run the app

The movie db example application uses the REST API at https://www.themoviedb.org/, to use this api you need an API Key from the site. You should create an account and ask for the key. They will send you it to you by email.

Before running grunt serve you should set the environment variable (this is a fake key you shuld add your own):

In  Windows
set MOVIEDB_API=ad168782b78fde75ebc21c3c99688216
In  Linux
export MOVIEDB_API=ad168782b78fde75ebc21c3c99688216

To run the app

grunt serve

point your browser to http:https://localhost:9000 if you have the APIKEY or to http:https://localhost:9000/demo/ to check available demo apps.

Tests

To run tests server and client

grunt test

For E2e tests

grunt test:e2e

To load the server

grunt serve

About

Angular Example App and demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages