Greenpeace Resource Insights.
- Install docker
- Install node
- Install yarn (sudo npm i -g yarn)
- cd backend
- yarn
- yarn start (starts graphql server)
Go to http://localhost:4000 and try to log in
mutation {
login(email: "mail@robf.co.nz", password: "password") {
token
}
}
Add HTTP headers with the token you get back, e.g.
{
"Authorization": "Bearer XYZ"
}
Try a query, e.g.
{
nros {
name
}
}
- cd frontend
- yarn
- yarn start