Skip to content

pedroeml/movies-client

Repository files navigation

Node.js CI GitHub Pages CI

Movies client

This project was generated with Angular CLI version 9.1.7.

Installation

$ npm install

Running the app

# development
$ npm run start

Navigate to http://localhost:4200/ or http://127.0.0.1:4200/. The app will automatically reload if you change any of the source files.

Build

# development
$ npm run build

# production
$ npm run build --prod

# production (GitHub Pages via docs folder)
$ npm run build --prod --output-path docs --base-href /movies-client/

Deploy

Deploy on GitHub Pages via angular-cli-ghpages

# production
$ ng deploy --base-href=/movies-client/ --repo=https://github.com/<username>/<repositoryname>.git --name="Your Git Username" --email=your.mail@example.org

# or using deploy information stored in angular.json
$ npm run deploy

Test

# unit tests
$ npm run test

# end-to-end
$ npm run e2e

Serve on a Docker container with NGINX

# starting up
$ docker-compose up

# shutting down
$ docker-compose down

Open your browser on http://localhost/ or http://127.0.0.1/.

Mocked User Credentials

There are only four mocked users at the moment:

username: john
password: 123

username: mary
password: 456

username: jack
password: 789

username: marvin
password: 012

TODO:

  • Unit testing