###### tags: `graphQL` `web` `jsonwebtoken`
# Create a graphQL endpoint with JWT authentication # 1
In this section, we will create two servers
1. graphQL server with dummy database
2. Frontend web server to get data from database in our graphQL server.
And most importantly, we are using JWT (JsonWebToken) to restrict only the frontend can access graphQL server to query data.
## See the detail from the [youtube](https://youtu.be/Y5bptLXm9zc)
## Reference
### Section#1: Graphql endpoint
- [Official docs with graphql-express](https://graphql.org/graphql-js/running-an-express-graphql-server/)
- [graphql-express](https://www.npmjs.com/package/express-graphql)
### Section#2: Nextjs frontend
- [graphql-request npm package](https://www.npmjs.com/package/graphql-request)
### Section#3: JWT auth
- [jwt.io](https://jwt.io/)
- [jasonwebtoken npm package](https://www.npmjs.com/package/jsonwebtoken)