Coder Social home page Coder Social logo

guoyu07 / jhipster-neo4j-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jhipster/jhipster-neo4j-app

0.0 0.0 0.0 3.72 MB

Sample JHipster application forked to use Neo4J

JavaScript 28.54% Shell 1.27% Batchfile 0.90% Java 44.96% HTML 19.16% ApacheConf 4.35% CSS 0.81%

jhipster-neo4j-app's Introduction

README for neojhipster

Some running instructions on the fly.

This project is based on the coolest seed app JHipster !!!!. More about it here (http://jhipster.github.io/).

Running this example

Make sure you have Maven and Node installed. Clone this repo and in the root directory of your clone give:

bower install
npm install

then

mvn spring-boot:run

Play with this app at http://localhost:8080/

Finally if you need grunt server (so you can live-reload changes on the front-end)

To have this at http://localhost:8080/ change the file Gruntfile.js line 85 from 0.0.0.0 to localhost and give

grunt server

NodeEntities & Utilization of Spring Data Neo4J

  1. User Nodes and Authority Nodes

The users that can login in JHipster application are represented as nodes and they are connected to nodes Authorities that they represent the rights (roles) of the users in our application. Although this could have been represented as an array of Strings property on node Users we follow the same convention used in JHipster (MySQL and Mongo)and create also Authorities separately as entities in case future application requirements may need to interconnect other type of nodes to authorities nodes as well.

  1. Persistent Token Nodes

These nodes represent the session of a user and they contain a series property for security authentication checks, which is refreshed by the security filter every time a request from a user is invoked to our application. The series and token value are stored in a cookie and they are checked by methods in CustomPersistentRememberMeServices class. The persistent tokens nodes are connected to Users also.

  1. PersistentAuditEvent and PersistentAuditEventData Nodes

These nodes are managed by the Spring Boot actuator for audit reporting. The persistentAuditEvent node should have a property PersistentAuditEventData Map<String, String> I chose to represent this as a different node although it would be possible to represent it as an array of Strings where each array entry is a string that can be split to two different strings using a special delimiter.

jhipster-neo4j-app's People

Contributors

pvlastaridis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.