/mb-world-map

Mapping music releases in the world by genre, to GoogleMaps.

Primary LanguageTypeScript

mb-world-map

What's this?

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.)

screencast

Development

1. Setup Music Brainz Database Clone on your machine

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"
};

2. Set API(GoogleMapsAPI) key

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 {}

3. Install dependencies and start 🚀

# (cd app)
cd api
yarn install && yarn start