All Projects → neo4j-examples → neo4j-ogm-university

neo4j-examples / neo4j-ogm-university

Licence: other
Example Project for Neo4j OGM

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
groovy
2714 projects
coffeescript
4710 projects
CSS
56736 projects
ruby
36898 projects - #4 most used programming language
powershell
5483 projects

Projects that are alternatives of or similar to neo4j-ogm-university

neo4-js
Neo4-js is a object-graph mapper for JavaScript and neo4j with full flow-type support.
Stars: ✭ 19 (-63.46%)
Mutual labels:  neo4j, ogm
py2neo
Py2neo is a comprehensive Neo4j driver library and toolkit for Python.
Stars: ✭ 1,105 (+2025%)
Mutual labels:  neo4j, neo4j-ogm
gogm
Golang Object Graph Mapper for Neo4j
Stars: ✭ 71 (+36.54%)
Mutual labels:  neo4j, ogm
Migrate
Database migrations. CLI and Golang library.
Stars: ✭ 2,315 (+4351.92%)
Mutual labels:  neo4j
Aaia
AWS Identity and Access Management Visualizer and Anomaly Finder
Stars: ✭ 218 (+319.23%)
Mutual labels:  neo4j
h2c-golang-example
Example HTTP/2 Cleartext (H2C) server and client in golang
Stars: ✭ 81 (+55.77%)
Mutual labels:  example-project
react-relay-example
Example project how to use React, Relay and TypeScript
Stars: ✭ 27 (-48.08%)
Mutual labels:  example-project
Neo4j Timetree
Java and REST APIs for working with time-representing tree in Neo4j
Stars: ✭ 199 (+282.69%)
Mutual labels:  neo4j
database-journal
Databases: Concepts, commands, codes, interview questions and more...
Stars: ✭ 50 (-3.85%)
Mutual labels:  neo4j
Graph Data Science
Source code for the Neo4j Graph Data Science library of graph algorithms.
Stars: ✭ 251 (+382.69%)
Mutual labels:  neo4j
Neo4j Framework
GraphAware Neo4j Framework
Stars: ✭ 247 (+375%)
Mutual labels:  neo4j
Userline
Query and report user logons relations from MS Windows Security Events
Stars: ✭ 221 (+325%)
Mutual labels:  neo4j
twitch-project
A weekly stream in which I build a web application with Neo4j and Typescript
Stars: ✭ 78 (+50%)
Mutual labels:  neo4j
Helicalinsight
Helical Insight software is world’s first Open Source Business Intelligence framework which helps you to make sense out of your data and make well informed decisions.
Stars: ✭ 214 (+311.54%)
Mutual labels:  neo4j
bookshelf
My GraphQL playground
Stars: ✭ 64 (+23.08%)
Mutual labels:  example-project
Bolt sips
Neo4j driver for Elixir
Stars: ✭ 204 (+292.31%)
Mutual labels:  neo4j
neo4j-faker
Use faker cypher functions to generate demo and test data with cypher
Stars: ✭ 30 (-42.31%)
Mutual labels:  neo4j
Neo4j Java Driver
Neo4j Bolt driver for Java
Stars: ✭ 241 (+363.46%)
Mutual labels:  neo4j
Neo4j To Elasticsearch
GraphAware Framework Module for Integrating Neo4j with Elasticsearch
Stars: ✭ 241 (+363.46%)
Mutual labels:  neo4j
BusinessIntelligence
商务智能期末项目
Stars: ✭ 43 (-17.31%)
Mutual labels:  neo4j

Hilly Fields Technical College

Overview

This demo web application shows developers how to quickly get started with the Neo4j OGM library and Neo4j graph database. For the Spring Framework version of this application please check out SDN University.

Hilly Fields Technical College is a fictitious educational institution. This application allows you to manage its departments, teaching staff, subjects, students and classes.

This project is built using:

  • Neo4j OGM 3.0
  • AngularJS 1.3
  • Bootstrap 3.3
  • Ratpack 1.4

It leverages the power of the Neo4j Object Graph Mapper(OGM) to via a RESTful interface with which a web client application may interact. The application is entirely stateless: every interaction involves a call over the wire to a Neo4j server.

Getting Started

Prerequisites

You will need to following to run this application:

  • Java 8
  • Neo4j version 3.1 or above. Optional if you are using the embedded driver.

Gradle has already been downloaded for you to execute.

Download the application

Either download the application or use git to clone the application:

git clone [email protected]:neo4j-examples/neo4j-ogm-university.git
cd neo4j-ogm-university

The static resources defined in the bower.json file will be installed under the src/ratpack/public/bower_components directory. This directory is ignored by git.

Configuration

This sample uses the bolt driver to connect to a local Neo4j instance running on port 7474. If you want to change this behaviour and/or provide your credentials read the sub-sections below.

Properties

If you are using a bolt or http connection to the database you'll need to provide connection credentials. To do this is to set the Neo4j username and password in src/main/resources/ogm.properties

# use bolt driver
URI=bolt://localhost
# use http driver
# URI=http://localhost:7474
username=<Your username here>
password=<Your password here>

To make the application use the embedded driver comment the URI property.

Dependencies

To use other drivers than bolt you also have to define the dependencies in the build.gradle file.

// use bolt driver
runtime 'org.neo4j:neo4j-ogm-bolt-driver:3.0.0'

// use http driver
// runtime 'org.neo4j:neo4j-ogm-http-driver:3.0.0'

// use embedded driver
// runtime 'org.neo4j:neo4j-ogm-embedded-driver:3.0.0'
// runtime 'org.neo4j:neo4j:3.2.5'

Starting the application

You can then start the application with gradle:

./gradlew run

And that's it! Head to http://localhost:5050 to see your application running.

Loading the initial dataset

WARNING!

By default, the application will attempt to use a Neo4j instance running on the same machine as this application started on the standard port 7474. IT WILL DESTROY ALL THE DATA IN THAT DATABASE AT STARTUP. So if you don't want that to happen please back up any existing database first.

You may notice that there is no data for you to interact with. To fix this hit the following endpoint from your browser or using curl:

http://localhost:5050/api/reload

This will pre-load the Neo4j database with a handful of departments, a dozen or so subjects and teachers, and 200 students. You'll probably want to enrol them in classes...

Stopping the application server

You can stop the application server at any time by pressing Ctrl-C in the console window from where you launched it.

Make it better!

If you'd like to contribute to the development of this application you will need to install:

The install bower via:

npm install --global bower

Development mode is on by default in Ratpack so you can just hit refresh to see the changes in the application.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].