Skip to content

Latest commit

 

History

History
82 lines (56 loc) · 1.98 KB

README.md

File metadata and controls

82 lines (56 loc) · 1.98 KB

Installing and running the backend with neo4j in docker

  1. Install docker manually
brew install docker
brew install virtualbox
docker-machine create --driver virtualbox default
docker-machine env default
eval "$(docker-machine env default)"
  • alternatively you can download docker desktop from the official website for your OS and just install it. All configuration will be done by the installer automatically
  1. Create a environment config file backend/.env similar to the one used for testing backend/.env.test

  2. Start docker with the following comand:

docker run -p 7474:7474 -p 7687:7687 -d -e NEO4J_AUTH=neo4j/NEO4J neo4j
  1. Navigate to http://localhost:7474/ to verify Neo4j is indeed running

  2. Seed the database

npm run db:clean
npm run db:seed
  1. Start the application
npm install
npm run dev
  1. Navigate the browser to http://localhost:4000/

Installing and running the backend with neo4j installed locally (alternative)

  1. Install neo4j by following the installation guidelines for your respective OS. macOS in combination with homebrew, you can just run
brew install neo4j

if you want to run on Windows, you can follow this instruction

  1. Once the installation has finished, you can launch neo4j via
neo4j start
  1. Navigate to http://localhost:7474/ to verify Neo4j is indeed running

  2. create a environment config file backend/.env similar to the one used for testing backend/.env.test

  3. Seed the database

npm run db:clean
npm run db:seed
  1. Start the application
npm install
npm run dev
  1. Navigate the browser to http://localhost:4000/

  2. Once done, the database can be stopped via

neo4j stop