diff --git a/backend/README.md b/backend/README.md index 7883828d6..836abb825 100644 --- a/backend/README.md +++ b/backend/README.md @@ -34,6 +34,13 @@ Connect with other developers over [Discord](https://discord.gg/6ub73U3) ## Quick Start +### Requirements + +Node >= `v10.12.0` +``` + node --version +``` + ### Forking the repository Before you start, fork the repository using the fork button above, then clone it to your local machine using `git clone https://github.com/your-username/Nitro-Backend.git` @@ -63,6 +70,17 @@ docker-compose down -v Install dependencies: +Download [Neo4j Enterprise Edition](https://neo4j.com/download-center/#releases) and unpack the files. + +Download [Neo4j Apoc](https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases) and drop the file into the `plugins` folder of the just extratced Neo4j-Server + +Start Neo4j +``` +neo4j\bin\neo4j start +``` +and confirm it's running [here](http://localhost:7687) + + ```bash yarn install # -or- diff --git a/backend/package.json b/backend/package.json index 83417635d..bc3485c40 100644 --- a/backend/package.json +++ b/backend/package.json @@ -3,9 +3,6 @@ "version": "0.0.1", "description": "GraphQL Backend for Human Connection", "main": "src/index.js", - "config": { - "no_auth": "cross-env GRAPHQL_URI=http://localhost:4001 GRAPHQL_PORT=4001 DISABLED_MIDDLEWARES=permissions" - }, "scripts": { "build": "babel src/ -d dist/ --copy-files", "start": "node dist/", @@ -25,7 +22,7 @@ "test:coverage": "nyc report --reporter=text-lcov > coverage.lcov", "db:script:seed": "wait-on tcp:4001 && babel-node src/seed/seed-db.js", "db:reset": "babel-node src/seed/reset-db.js", - "db:seed": "$npm_package_config_no_auth run-p --race dev db:script:seed" + "db:seed": "cross-env GRAPHQL_URI=http://localhost:4001 GRAPHQL_PORT=4001 DISABLED_MIDDLEWARES=permissions run-p --race dev db:script:seed" }, "author": "Human Connection gGmbH", "license": "MIT", @@ -100,4 +97,4 @@ "nyc": "~13.3.0", "supertest": "~4.0.2" } -} +} \ No newline at end of file diff --git a/backend/src/index.js b/backend/src/index.js index 7ed7bf70a..843639aa8 100644 --- a/backend/src/index.js +++ b/backend/src/index.js @@ -12,6 +12,6 @@ const serverConfig = { const server = createServer() server.start(serverConfig, options => { /* eslint-disable-next-line no-console */ - console.log(`Server ready at ${process.env.CLIENT_URI} 🚀`) + console.log(`GraphQLServer ready at ${process.env.GRAPHQL_URI} 🚀`) ActivityPub.init(server) })