All Projects → adrien2p → Nestjs Graphql

adrien2p / Nestjs Graphql

Licence: mit
nest-js starter which implement graphql module

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Nestjs Graphql

Nestjs Sequelize Jwt
Nest + Sequelize + jwt
Stars: ✭ 127 (+14.41%)
Mutual labels:  dotenv, orm, sequelize, nest, jwt, jsonwebtoken
Example Auth
User auth, session & JWT example for ReactQL
Stars: ✭ 51 (-54.05%)
Mutual labels:  graphql, sequelize, jwt
Jwt
JWT utilities module based on the jsonwebtoken package 🔓
Stars: ✭ 232 (+109.01%)
Mutual labels:  nest, jwt, jsonwebtoken
Nextjs Sequelize
Next.js With Sequelize Web Application, a Full-Stack Web App Development Boilerplate. https://medium.com/@defrian.yarfi/next-js-with-sequelize-web-application-a-full-stack-web-development-a0051074e998
Stars: ✭ 21 (-81.08%)
Mutual labels:  orm, sequelize, jwt
Nest Angular
NestJS, Angular 6, Server Side Rendering (Angular Universal), GraphQL, JWT (JSON Web Tokens) and Facebook/Twitter/Google Authentication, Mongoose, MongoDB, Webpack, TypeScript
Stars: ✭ 307 (+176.58%)
Mutual labels:  graphql, nest, jwt
Sequelize
Sequelize module for Nest framework (node.js) 🍈
Stars: ✭ 88 (-20.72%)
Mutual labels:  orm, sequelize, nest
Crate
👕 👖 📦 A sample web and mobile application built with Node, Express, React, React Native, Redux and GraphQL. Very basic replica of stitchfix.com / krate.in (allows users to get monthly subscription of trendy clothes and accessories).
Stars: ✭ 2,281 (+1954.95%)
Mutual labels:  graphql, sequelize, jwt
Django Graphql Jwt
JSON Web Token (JWT) authentication for Graphene Django
Stars: ✭ 649 (+484.68%)
Mutual labels:  graphql, jwt, jsonwebtoken
Turbulette
😴 Turbulette - A batteries-included framework to build high performance, fully async GraphQL APIs
Stars: ✭ 29 (-73.87%)
Mutual labels:  graphql, orm
Hapi Auth Keycloak
JSON Web Token based Authentication powered by Keycloak
Stars: ✭ 29 (-73.87%)
Mutual labels:  jwt, jsonwebtoken
Jose
Universal "JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK with no dependencies
Stars: ✭ 1,029 (+827.03%)
Mutual labels:  jwt, jsonwebtoken
App
Reusable framework for micro services & command line tools
Stars: ✭ 66 (-40.54%)
Mutual labels:  graphql, jwt
X Restful Api Generator Koa
一个基于 Koa 的 RESTful API 服务脚手架。 A RESTful API generator for Koa
Stars: ✭ 18 (-83.78%)
Mutual labels:  jwt, jsonwebtoken
Nest Passport
Nest authentication example using passport strategies
Stars: ✭ 44 (-60.36%)
Mutual labels:  nest, jwt
Geek Framework
基于SpringBoot+Shiro+Redis+Jwt+Thymeleaf+MyBatis 开发的后台用户、角色、权限、会员管理、RestFul、Token和前台用户登录注册以及前后台用户分离的脚手架,技术交流请加QQ群:805442966
Stars: ✭ 804 (+624.32%)
Mutual labels:  jwt, jsonwebtoken
Spring Boot Jwt
JWT auth service using Spring Boot, Spring Security and MySQL
Stars: ✭ 795 (+616.22%)
Mutual labels:  jwt, jsonwebtoken
Dashboard Server
A JSON file RESTful API with authorization based on json-server
Stars: ✭ 48 (-56.76%)
Mutual labels:  jwt, jsonwebtoken
Foal
Elegant and all-inclusive Node.Js web framework based on TypeScript. 🚀.
Stars: ✭ 1,176 (+959.46%)
Mutual labels:  orm, jwt
Sjwt
Simple JWT Golang
Stars: ✭ 86 (-22.52%)
Mutual labels:  jwt, jsonwebtoken
Django Graphql Social Auth
Python Social Auth support for Graphene Django
Stars: ✭ 90 (-18.92%)
Mutual labels:  graphql, jwt

[UNMAINTAINED]

Nest

Project based on nest-js-sequelize-jwt and use

How it works

  • To run lint and fix npm run lint
  • To run tests suite npm run test
  • Start the server npm start
  • To run up/down migration npm run migrate {up/down}

Configuration

To configure put all config file in the ./src/config/*. To use the env variable, remove .demo from .env.demo.

Request example

To get users

POST http://localhost:3000/graphql with the following body :

{
    "query": "{ getUsers(filter: { search: \"toto\" }) { id, firstName, lastName, email }}"
}

Where getUsers is a Query type which is difine in the ./modules/graphql/config/schema.ts and implemented in ./modules/graphql/config/resolvers.ts

And the result of this request is :

{
    "data": {
        "getUsers": [
            {
                "id": "1",
                "firstName": "firstName",
                "lastName": "lastName",
                "email": "[email protected]"
            }
        ]
    }
}

To get user with cars

POST http://localhost:3000/graphql with the following body :

{
    "query": "{ getUsers(filter: { email: \"toto\" }) { id, firstName, lastName, email, cars {id, brandName, purchaseDate }}}"
}

Where getUsers is a Query type which is difine in the ./modules/graphql/config/schema.ts and implemented in ./modules/graphql/config/resolvers.ts and contain cars which is also define in schema and implemented in resolver

And the result of this request is :

{
    "data": {
        "getUsers": [
            {
                "id": "1",
                "firstName": "firstName",
                "lastName": "lastName",
                "email": "[email protected]",
                "cars": [
                    {
                        "id": "1",
                        "brandName": "tesla",
                        "purchaseDate": "Thu Aug 17 2017 02:00:00 GMT+0200 (CEST)"
                    }
                ]
            }
        ]
    }
}

To update user (is same implementation for all you want)

POST http://localhost:3000/graphql with the following body :

{
    "query": "mutation {updateUser(values:{ id:1, firstName:\"titi\" }){ id, firstName, lastName, email, cars { id, brandName, purchaseDate }}}"
}

The updateUser resolver is implemented in the Mutation and apply in the schema

And the result of this request is :

{
    "data": {
        "updateUser": {
            "id": "1",
            "firstName": "titi",
            "lastName": "toto",
            "email": "[email protected]",
            "cars": [
                {
                    "id": "1",
                    "brandName": "tesla",
                    "purchaseDate": "Thu Aug 17 2017 02:00:00 GMT+0200 (CEST)"
                }
            ]
        }
    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].