Closed Tirokk closed 3 years ago
Authored by roschaefer
Hey @dineshlt I'm so sorry that you we guided you in the wrong direction Since one week we have a monorepo, ie. all services are placed in one repository called /Human-Connection/Human-Connection.
Could you clone that repo, switch into folder backend
, install dependencies yarn install
and run yarn run dev
?
By the way, the above error looks like you don't use babel-node
but plain node. Use npm run dev
or yarn run dev
.
Please document all the steps and update the documentation! https://github.com/Human-Connection/Nitro-Documentation/blob/master/backend/installation/README.md
Thanks a lot!
Authored by dineshlt
Hi @roschaefer
Thanks for your guide. I have installed and changed the plain node into babel node.
But now I am facing babel mismatching error given below:
/home/android/Human Connection/Human-Connection/backend/node_modules/@babel/helper-plugin-utils/lib/index.js:72
throw Object.assign(err, {
^
Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.
I have upgraded babel-core@6.26.3 to babel-core@7.0.0 but I still face the same issue
npm -- 6.4.1
node --8.1.3
I have used above node and npm version. Kindly give any needfull suggestion on which babel vesion will support my npm and node version.
Authored by roschaefer
@dineshlt did you find your way to our real-time chat already? https://discordapp.com/invite/6ub73U3
Authored by roschaefer
@dineshlt here are my versions:
robert@e480 ~> yarn --version
1.13.0
robert@e480 ~> node --version
v10.15.1
@dineshlt today we found out that we have a constraint that you will need a recent node version because of a dependeny on crypto. You can always use the docker installation to get the most reliable, hassle-free setup.
Authored by dineshlt
Hi @roschaefer
Thanks for your guide. I have updated my node version from 8.1.3 into the 11.13.0.
Now successfully running backend in http://localhost:4000/ also web app in http://localhost:3000/
But I can't able to login in the web app.
user@example.org
moderator@example.org
admin@example.org
Password: 1234 (same for all profiles)
I have used the above 3 logins. It's showing the below issue
Error: GraphQL error: The client is unauthorized due to authentication failure.
screenshot: https://prnt.sc/n6u8nw
Kindly let me know how to resolve it
Thanks...
Authored by roschaefer
@dineshlt probably because your Neo4J database is empty. You have to yarn run db:seed
in backend. If you do the local installation without docker, you should run this script to create unique constraints. Otherwise you will have some failing tests if you do yarn run test
.
so: 1) Seed the database (to login successfully) 2) Create unique constraints (to let all backend tests pass)
I'll close this because I've seen you found your way on Discord.
HI
I have successfully installed Nitro-Backend package using the below guide
https://docs.human-connection.org/nitro/backend/installation
If I start nitro backend using this command npm run start am getting the below issue
I am getting the issue for graphql-schema.js file. so I have installed neo4j Desktop and configured using that same guide.
Successfully installed and ran this local server http://localhost:7474/browser/ and also created Indices in Neo4j by using the below commands.
$ CALL db.index.fulltext.createNodeIndex("full_text_search",["Post"],["title", "content"]);
But I can't able to Seed Database with Data
If I run this command npm run db:seed I am getting the below syntax error
Kindly give any needfull suggestion.