Skip to content

gsreynolds/national-parks-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

National Parks

Build the application (Mac)

Install Maven. I am assuming that java is already installed with these tools.

$ brew install maven

Run the application (Mac)

Install Tomcat

$ brew install tomcat

Copy the built war into tomcat's war directory.

$ cp target/national-parks.war $(catalina -h | grep CATALINA_HOME | cut -d ' ' -f 5)/webapps
$ catalina run

Visit http://localhost:8080/national-parks

Start the database (Mac)

$ brew install mongodb
$ brew services start mongodb

Populate the database

Add all the national parks data to the mongo database

$ mongoimport --drop -d demo -c nationalparks --type json --jsonArray --file ./national-parks.json $*

About

National Parks Application in Java with Mongo DB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors