This application demonstrates how MongoDB Atlas, Atlas Search, Atlas Vector Search, Atlas Charts and Realm, combined with cloud ecosystem services like Google Maps and Google Geocoding can be used to build a data discovery and exploration application.
The application visualizes two datasets -- one from ClinicalTrials.gov and another from OpenFDA -- to create a unique information discovery experience that was not possible using the existing search UI offered by these respective websites.
-
git clone https://github.com/mongodb-developer/MongoRx.git
-
Create Angular environment files from template
cd src/environments cp environment.prod.ts.sample environment.prod.ts cp environment.ts.sample environment.ts
-
Edit
environment.prod.ts
andenvironment.ts
and update thegoogleMapsApiKey
property with your new API key. -
Create a config file from template
cd MongoRx/deploy cp env.config.sample env.config
-
Edit
env.config
and provide your MongoDB Atlas API public and private keys, your Atlas project ID, Atlas cluster name, and the connection string for your Atlas cluster. -
Execute the setup script -- note: this is a long-running script that may take upwards of an hour to complete!
./setup.sh
To run the app locally in development mode:
cd MongoRx
npm start
To run the app locally in production mode:
cd MongoRx
ng serve --browser-target project:target:production
Navigate to http://localhost:4200