You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
André Jaenisch 078a2d9b33 Switch positions 3 years ago
client/cait Switch positions 3 years ago
server GraphQL for adding cards. And a form! (Not bound to it) 3 years ago
.editorconfig Some dotfiles 3 years ago
.gitignore client build ignore 3 years ago
.huskyrc.json Some dotfiles 3 years ago
.npmrc Some dotfiles 3 years ago
.nycrc Some dotfiles 3 years ago
Procfile Try running shelljs script as postbuild 3 years ago
README.md State cURL command for testing GraphQL 3 years ago
package-lock.json Use shelljs to provide environment 3 years ago
package.json Saving some time of build by dropping preinstall script 3 years ago
postinstall.js Trick Heroku with lifecycle runscripts 3 years ago
provision.js Saving some time of build by dropping preinstall script 3 years ago

README.md

NKO2019 - CaIT

Cards against IT. Our submission to Node Knockout 2019.

Getting started

Create a .env file next to this README and fill in the blanks:

SERVERPOST="3000"
SERVERHOST="localhost"
AUTH0_CALLBACK_URL="https://subdomain.herokuapp.com/callback"
AUTH0_CLIENT_ID="clientid"
AUTH0_CLIENT_SECRET="clientsecret"
AUTH0_DOMAIN="subdomain.auth0.com"
DATABASE_URL="postgres://username:password@hostname:port/path"
LIBRATO_PASSWORD="secret"
LIBRATO_TOKEN="youcantguessthis"
LIBRATO_USER="app123456790@heroku.com"
MOESIF_APPLICATION_ID="dontyousay"
SENTRY_DSN="https://user@sentry.io/id"
TWITTER_API_KEY="supersecret"
TWITTER_API_SECRET_KEY="ohnoesyoucanthavethis"

You can find the values on Heroku.

Testing GraphQL

Run the following command:

curl 'https://mysterious-meadow-35196.herokuapp.com/graphql' -H 'Content-Type: application/json;charset=utf-8' -H 'Origin: https://mysterious-meadow-35196.herokuapp.com/graphql' --data '{"query":"{users {name photo github twitter} cards {type text}}"}' --verbose