Skip to content

KIlian42/Responsibility-Matrix

Repository files navigation

TO DO - Project setup

(Install Node.Js and NPM - Node Package Manager - if not done yet)

Setup Backend

Setup Neo4j:

  1. Install Neo4j with apoc:
docker run \
    -p 7474:7474 -p 7687:7687 \
    -v $PWD/data:/data -v $PWD/plugins:/plugins \
    --name neo4j-apoc \
    -e NEO4J_apoc_export_file_enabled=true \
    -e NEO4J_apoc_import_file_enabled=true \
    -e NEO4J_apoc_import_file_use__neo4j__config=true \
    -e NEO4JLABS_PLUGINS=\[\"apoc\"\] \
    neo4j:4.0
  1. Open "localhost:7474" in the browser.
  2. Sign in with username "neo4j" and password "neo4j".
  3. Set as new password "test". Confirm the password.

Setup ApolloServer:

  1. Navigate into the /Server/Graphql-ApolloServer folder.
  2. Install the ApolloServer:
npm install
  1. Start the ApolloServer
node index.js

Feed initial data into the Neo4j Database:

  1. Open "localhost:4000" in the browser and click on "Query your server". You will be redirected.
  2. In the /Server/Neo4j-Database folder copy the content of the feed.gql and paste it into the middle operation box in the browser interface. Click "Run" to execute the mutation.
  3. Do step 2 for the feed2.gql file.
  4. Test the feed by paste the following query into the middle operation box in the browser interface. Click "Run" to execute the query:
query {
    users(where: { username: "Kilian" }) {
        Questionnaire(where: { id: "Project 1" }) {
            OpenQuestions
            ClosedQuestions {
              id
              component
              scope
              answer
              answered_at
            }
        }
    }
}

Stop/Start the Neo4j Database Docker Container:

The following command lists all running docker processes:

docker ps

The name of our docker process is neo4j-apoc (see first step: 1. Install Neo4j with apoc):

docker stop neo4j-apoc
docker start neo4j-apoc

Setup Frontend

Install plugins:

  1. In the root folder of this project paste the following commands:
npm install
  1. Compile and build project:
npm run serve

About

Project @ UM (Vue + Neo4j)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages