Skip to content

Local Setup Guide

Kan edited this page Feb 22, 2019 · 3 revisions

Local Setup Guide

Prerequisites

  • Maven version >= 3.5.4
  • Java 8
  • MongoDB version >= 4.0.5

Get Started

1. run the init-script, it will clone the related projects

2. Go into the service-eureka-server project and execute following commands

mvn clean spring-boot:run -Dspring.profiles.active=dev

After the application started up, please check Eureka server page is on

3. Go into the service-config-server project and execute following commands

mvn clean spring-boot:run -Dspring.profiles.active=dev

After the application started up, please go to Eureka server page and check application is registered in Eureka

4. Start the MongoDB instance with Docker (if you want to create that on local, please go to 4.1)

Go into the mongodb-docker-template project, build the image with Dockerfile-dev and run it

Example for service-jobad-reader:

cd ./mongodb-docker-template/service-jobad-reader
docker build -f Dockerfile-dev .
docker run -p 37017:27017 -d ${please-replace-with-image-id}

4.1. Start the MongoDB instance on local

Start up a local MongoDB instance on port 37017

mongod --port 37017

Connect it with MongoDB Shell and paste the script

mongo --port 37017
  1. Starting others services Go into the service-jobad-reader, service-eureka-scheduler, service-zuul-server projects and repeat the steps of starting service-config-server service-rss-reader local version is in the development, thanks!