the-road-to-graphql / fullstack-apollo-express-postgresql-boilerplate

💥 A sophisticated GraphQL with Apollo, Express and PostgreSQL boilerplate project.
https://roadtoreact.com
MIT License
1.2k stars 263 forks source link

How to check signup and login? [help wanted] #51

Closed mdmasumbillah closed 5 years ago

mdmasumbillah commented 5 years ago

I'm new here. I did know how to check user signup or login.

mdmasumbillah commented 5 years ago

Solved it.

signIn(login:"rwieruch", password:"rwieruch"){
  token
}
}
mutation {
signUp(username:"masum", password:"masumBillah", email:"masum@test.com"){
  token
}
}
morenoh149 commented 5 years ago

I'm kind of lost too, just cloned and ran this locally. Where is the react web app?

update: looks like it was removed, I see you can do the graphql above in the explorer at http://localhost:8000/graphql

mutation {
  signUp(username:"foo", password:"foobar", email:"foo@test.com"){
    token
  }
}
mutation {
  signIn(login:"foo", password:"foobar"){
    token
  }
}
rwieruch commented 5 years ago

It was move. You can find it in the README of this repository or right over here https://github.com/the-road-to-graphql/fullstack-apollo-react-boilerplate I separated it, because now you can combine different frontends with backends (e.g. https://github.com/the-road-to-graphql/fullstack-apollo-express-mongodb-boilerplate).

morenoh149 commented 5 years ago

ah I see now. I think I overlooked it because both of these projects have fullstack in the name.