/graphql-authorization

Handling authorization in GraphQL

Primary LanguageJavaScript

graphql-authorization

Handling authorization in GraphQL - https://pusher.com/tutorials/authorization-graphql

Getting Started

Clone the project repository by running the command below if you use SSH

git clone git@github.com:ammezie/graphql-authorization.git

If you use https, use this instead

git clone https://github.com/ammezie/graphql-authorization.git

After cloning, run:

npm install

Rename .env.example to .env then enter your JWT secret:

JWT_SECRET=

Then run the migration:

node_modules/.bin/sequelize db:migrate

And finally, start the application:

npm run dev

The server will be running on http://localhost:4000/api.