This application uses the LastFM API to search musical artists and the TheMovieDB API to search movies to display basic demographical information. It was developed using Angular 5, makes calls to the LastFM API and the TheMovieDB API, and styled using the Bulma CSS Framework.
- Angular CLI v1.6.7
- Angular v5.2.3
- Bulma v0.6.2
- Clone this repo
git clone https://github.com/stanleyeosakul/angular-lastfm.git
cd
into the folder of the cloned repo- Run
yarn install
to install dependencies - Update the
LastFM API Key
-
Obtain a free API key from LastFM here
-
Obtain a free API key from TheMovieDB here
-
Go to
api.service.ts
and save your API keys into the fileexport class LastfmService { API_KEY_LASTFM = <your-lastFM-API-key-goes-here> API_KEY_THEMOVIEDB = <your-TheMovieDB-API-key-goes-here> constructor(private http: HttpClient) { }
-
- Run
ng serve
, and navigate tohttp://localhost:4200/
-
Modify the
start
andpostinstall
scripts inpackage.json
to:"scripts": { "ng": "ng", "start": "node server.js", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "postinstall": "ng build --prod" },
-
Move the following dependecies from
devDependencies
todependencies
inpackage.json
:"dependencies": { ... "@angular/cli": "1.6.6", "@angular/compiler-cli": "^5.2.2", ... "typescript": "~2.5.3", ... },
-
Deploy to Heroku as directed in their documentation.