Handling authorization in GraphQL - https://pusher.com/tutorials/authorization-graphql
Clone the project repository by running the command below if you use SSH
git clone git@github.com:ammezie/graphql-authorization.gitIf you use https, use this instead
git clone https://github.com/ammezie/graphql-authorization.gitAfter cloning, run:
npm installRename .env.example to .env then enter your JWT secret:
JWT_SECRET=Then run the migration:
node_modules/.bin/sequelize db:migrateAnd finally, start the application:
npm run devThe server will be running on http://localhost:4000/api.