How to: Dev Environment Setup - SWEZenith/Living-History-API GitHub Wiki

Prerequisite:

  • Install Java JDK 1.8
  • Install IntelliJ Idea (you can use any other, but we have used IntelliJ Idea 2017)
  • Install MongoDB

Steps

  1. Set environment variables: In Windows, open Environment Variables and add JAVA_HOME. Enter JDK file path. Example: C:\Program Files\Java\jdk1.8.0_151
  2. Clone GitHub repo your local.
  3. Start IntelliJ Idea and import project. When importing the project, select build.gradle file in your cloned local folder of the repo.
  4. Run mongod to start local mongodb instance: Go to folder where you have install MongoDB and double click mongod.exe. Note: In Windows, it is necessary that you have the folder C:\Data\db before you run mongod.
  5. Run gradle bootRun command to install dependencies, build and run.