Mapping worldwide music releases by genres to Google Maps, using MusicBrainz database dump. (MusicBrainz Web API does not handle some kinds of data we need.)
I used awesome dockerimage - arey/musicbrainz-database
Database connection should be configured to:
const config = {
host: "localhost",
port: 5432,
database: "musicbrainz",
user: "musicbrainz",
password: "musicbrainz"
};
In app.module.ts, you can set your API key.(Sorry for hard coding 😓)
@NgModule({
declarations: [AppComponent, MapComponent],
imports: [
BrowserModule,
CommonModule,
FormsModule,
HttpClientModule,
AgmCoreModule.forRoot({ apiKey: "API_KEY_HERE" })
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}
# (cd app)
cd api
yarn install && yarn start