8000 GitHub - Bombaharris/nggql: Neo4j, GraphQL and Angular
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Bombaharris/nggql

Repository files navigation

Nggql — GAAND stack

Nggql is a simple imaginary web application for software houses build with GAAND(GraphQL, Angular, Apollo and Neo4j Database) stack.

Development server

  1. docker-compose up -d
  2. npm start

Api rebuild

docker-compose build api

http://localhost:4000/ - Appolo Sandbox

Example query:

mutation CreatePeopleMutation {
  createPeople(input: {
    name: "Rafał",
    surname: "Zielonka",
    birthday: "1981-12-30",
    location: {
      longitude: 51.213213,
      latitude: 21.2132132
    },
    skills: {
        connect: [
          {
            where: {
              node: {
               name: "AWS"
              }
            }
          }
        ]
    }
  }) {
    people {
      name
      birthday
      location {
        longitude
        latitude
        height
      }
      skills {
        name
      }
    }
  }
}
mutation CreateSkills($input: [SkillCreateInput!]!) {
  createSkills(input: $input) {
    skills {
      id,
      name,
      persons {
        name
      }
    }
  }
}
{
  "input": [
    {
      "name": "A11y",
      "persons": {
        "connect": [
          {
            "where": {
              "node": {
               "name_CONTAINS": "Łukasz"
              }
            }
          }
        ]
      }
    }
  ]
}

http://localhost:7474/ - neo4j browser

Example query:

MATCH (n:Person) RETURN n LIMIT 25

Drop database with:

MATCH (n) DETACH DELETE n

api/

For API only developement:

  1. docker-compose stop api
  2. docker-compose up -d neo4j
  3. cd api/ && npm start

api/ Docs

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Run npm run prestart to generate GQL services with https://www.graphql-code-generator.com/docs/plugins/typescript-apollo-angular.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

TODO

  • setup GH action
  • dockerize front

Using git-flow to automate your git branching workflow

%%{init: { 'logLevel': 'debug', 'theme': 'neutral', 'gitGraph': {'showBranches': true, 'showCommitLabel':true,'mainBranchName': 'master'}} }%%
gitGraph
       commit id: "chore: init"
       branch develop
       checkout develop
       commit id: "chore: job"
       branch feature/xyz order: 2
       commit id: "feat: x"
       checkout feature/xyz
       commit id: "feat: y"
       commit id: "feat: z"
       checkout develop
       merge feature/xyz
       branch release/v1.0.0
       commit id: "chore: release version 1.0.0"
       checkout master
       merge release/v1.0.0 tag: "v1.0.0"
       checkout develop
       merge release/v1.0.0
       commit id: "feat: b"
       commit id: "feat: c"
       commit id: "feat: d"
       branch release/v1.0.1
       commit id: "chore: release version 1.0.1"
       checkout master
       merge release/v1.0.1 tag: "v1.0.1"
       checkout develop
       merge release/v1.0.1
       commit id: "feat: e"
       commit id: "feat: f"
       checkout master
       branch hotfix/v1.0.2 order: 0
       commit id: "fix: v1.0.2"
       checkout master
       merge hotfix/v1.0.2 tag: "v1.0.2"
       checkout develop
       merge hotfix/v1.0.2
       commit id: "feat: g"
       commit id: "feat: h"
Loading

Bump version, update changelog, commit, & tag release

It's recommended that you install commitizen to make commits to your project.

npm install -g commitizen

# commit your changes:
git cz

repo-visualizer

This is an example of using the repo-visualizer GitHub Action.

Visualization of this repo

About

Neo4j, GraphQL and Angular

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0