brunomouranascimento / movieflix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Movieflix

Movieflix is a web application that uses https://swapi.co/ to retrive Star Wars movies data.

Features

Running the application

To run the application uou need to install Node.js on your machine check this guide here. First git clone the repo, then go to directory and run npm install to install dev and prod dependencies. Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

$ cd movieflix
$ npm install
$ ng serve

Unit test

To execute unit tests, go to directory that you clonned early and run ng test to start Karma and the tests will execeute automatically.

$ cd movieflix
$ ng test

Kwnown Issues

  • SWAPI returns each movie data individually, but all the characters, starships, planets, species and vehicles must be retrieved individually, with no movie-correlation. E.G: "The phantom menace" has 34 characters, and to show his names must be necessary 34 calls to the API, and it could be very "laggy". For future versions I could include a lazy load module to retrive complete data for each movie;

About

License:MIT License


Languages

Language:TypeScript 53.7%Language:CSS 27.8%Language:HTML 14.3%Language:JavaScript 4.2%