Skip to content

Skeleton project for MongoDB / Spring Boot REST workshop

Notifications You must be signed in to change notification settings

ttrelle/mongo-boot-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Spring Boot Workshop

Workspace & IDE

  • Repository klonen:
cd /tmp
git clone http://github.com/ttrelle/mongo-boot-workshop.git
  • Download + Install STS

MongoDB Installation

Nativ

  • Download MongoDB
  • Entpacken nach $MONGO_HOME
  • $MONGO_HOME/bin in Pfad aufnehmen:
MONGO_HOME=/Users/tobias/dev/mongodb-osx-x86_64-3.4.7
ulimit -Sn 1024
export PATH=${PATH}:${MONGO_HOME}/bin
  • Standard-Ordner anlegen:
mkdir -p /data/db
  • Server starten:
mongod
  • Daten importieren:
# Switch to workspace location
mongorestore -d test data/pois.bson

Docker

  • Download und Start:
# Switch to workspace location
docker-compose up
  • Daten importieren:
# Connect to containter
docker exec -it mongodb bash

# Data import from mount
mongorestore -d test /import/pois.bson

Documentation

Slides

Misc

  • Bei langen Startzeiten von Spring Boot auf Mac OS:
scutil --set HostName "localhost"

About

Skeleton project for MongoDB / Spring Boot REST workshop

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages