All Projects โ†’ biantris โ†’ koa-server

biantris / koa-server

Licence: other
๐Ÿ—„๏ธ GraphQL Back-end Server with Relay, Koa, MongoDB and Mongoose

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to koa-server

Create Graphql
Command-line utility to build production-ready servers withย GraphQL.
Stars: โœญ 441 (+1322.58%)
Mutual labels:  relay, koa, mongoose, graphql-server
Blog Service
blog service @nestjs
Stars: โœญ 188 (+506.45%)
Mutual labels:  koa, mongoose, graphql-server
bunjil
A GraphQL bastion server with schema merging, authentication and authorization with Policy Based Access Control
Stars: โœญ 25 (-19.35%)
Mutual labels:  koa, graphql-server
koa-mongoDB
๐Ÿ˜Š๐Ÿ˜ŠKoa and mongoose build services
Stars: โœญ 24 (-22.58%)
Mutual labels:  koa, mongoose
fast-relay-pagination
Improve relay pagination performance with find and limit
Stars: โœญ 18 (-41.94%)
Mutual labels:  relay, mongoose
Graphql Pokemon
Get information of a Pokรฉmon with GraphQL!
Stars: โœญ 441 (+1322.58%)
Mutual labels:  relay, koa
Lighthouse Utils
An add-on to Lighthouse to auto-generate CRUD actions from types https://github.com/nuwave/lighthouse
Stars: โœญ 26 (-16.13%)
Mutual labels:  relay, graphql-server
graphql-server-typescript
GraphQL + MongoDB express server with JWT authorization (in Typescript!)
Stars: โœญ 48 (+54.84%)
Mutual labels:  mongoose, graphql-server
graphql-dotnet-relay
Relay support for graphql-dotnet
Stars: โœญ 13 (-58.06%)
Mutual labels:  relay, graphql-server
graphql-rest-api-demo
A demo of what an equivalent REST API and GraphQL API look like.
Stars: โœญ 51 (+64.52%)
Mutual labels:  mongoose, graphql-server
koa-session-mongoose
Mongoose store for Koa sessions
Stars: โœญ 29 (-6.45%)
Mutual labels:  koa, mongoose
koahub-cli
KoaHub CLI -- KoaHub.js็š„ๅผ€ๅ‘ๅทฅๅ…ท๏ผŒ่‡ชๅŠจbabel็ผ–่ฏ‘ ES6/7๏ผˆGenerator Function, Class, Async & Await๏ผ‰ๅนถไธ”ๆ–‡ไปถไฟฎๆ”นๅŽ่‡ชๅŠจ้‡ๅฏใ€‚
Stars: โœญ 16 (-48.39%)
Mutual labels:  koa, koajs
Graphql Up
Get a ready-to-use GraphQL API for your schema
Stars: โœญ 415 (+1238.71%)
Mutual labels:  relay, graphql-server
Koa React Isomorphic
Boilerplate for Koa & React
Stars: โœญ 128 (+312.9%)
Mutual labels:  relay, koa
Parse Server
API server module for Node/Express
Stars: โœญ 19,165 (+61722.58%)
Mutual labels:  relay, graphql-server
koa-subdomain
Simple and lightweight Koa middleware to handle multilevel and wildcard subdomains
Stars: โœญ 23 (-25.81%)
Mutual labels:  koa, koajs
react-graphql
react-graphql ๅฟซ้€Ÿๅผ€ๅ‘ๆ–นๆกˆ
Stars: โœญ 15 (-51.61%)
Mutual labels:  koa, mongoose
graphql-pynamodb
Graphene PynamoDB Integration
Stars: โœญ 63 (+103.23%)
Mutual labels:  relay, graphql-server
relay-compiler-plus
Custom relay compiler which supports persisted queries
Stars: โœญ 68 (+119.35%)
Mutual labels:  relay, graphql-server
graphql-ufc-api
GraphQL server for UFC's public API
Stars: โœญ 26 (-16.13%)
Mutual labels:  koa, graphql-server

image

koa-server

GraphQL Back-end Server with Relay, Koa, MongoDB and Mongoose

Tests Passing follow on Twitter

๐Ÿšง WIP ๐Ÿšง

NOTE: See Front-end project graphql-relay-web

Stack

  • Koa
  • MongoDB
  • Mongoose
  • GraphQL
  • Relay
  • Jest
  • SuperTest
  • Code Coverage(Codecov) see

Project architecture

.
โ”œโ”€โ”€ graphql/
โ”‚   โ””โ”€โ”€ schema.graphql
โ”œโ”€โ”€ script
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ __tests__
โ”‚   โ”œโ”€โ”€ database
โ”‚   โ”œโ”€โ”€ graphql
โ”‚   โ”œโ”€โ”€ modules/
โ”‚   โ”‚   โ”œโ”€โ”€ event/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ __tests__
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ fixure
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ mutations/
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ __tests__
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ EventCreateMutation.ts
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ EventDeleteMutation.ts
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ EventUpdateMutation.ts
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ index.ts
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ EventFilterInputType.ts
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ EventLoader.ts
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ EventModel.ts
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ EventType.ts
โ”‚   โ”‚   โ””โ”€โ”€ node/
โ”‚   โ”‚       โ””โ”€โ”€ typeRegister.ts
โ”‚   โ”œโ”€โ”€ schema/
โ”‚   โ”‚   โ”œโ”€โ”€ MutationType.ts
โ”‚   โ”‚   โ”œโ”€โ”€ QueryType.ts
โ”‚   โ”‚   โ””โ”€โ”€ schema.ts
โ”‚   โ””โ”€โ”€ shared
โ””โ”€โ”€ test

Getting Started

  • clone this repo
# install dependencies
yarn
# or
yarn install

# copy .env file
cp .env.example .env

# start project
yarn start

# see on GraphiQL graphql interface on localhost link
http://localhost:9000/graphql

# or see graphql Playground
http://localhost:9000/playground

Generating the schema

yarn schema

Create events manually

yarn seed

to-do

demo

๐Ÿ”— [wip]

Mutations

  • Event Create Mutation
 mutation {
   EventCreate (input: { 
     eventId: 564654, 
     name: "nice event", 
     start: "2022-07-01T00:00:00.000Z",
     end: "2022-07-01T23:59:59.000Z",
     allDay: false
   }) {
       event {
         id
         name
         start
         end
         allDay
       }
        error
        success
      }
    }
  • Event delete Mutation
  mutation {
      EventDelete (input: { eventId: "629521641ff2c2c8f5f2e449" }) {
        eventId
        error
        success
      }
    }
  • Event Update Mutation
   mutation {
   EventUpdate (input: { 
     eventId: "62952906f5c651ced019adf3", 
     name: "nice event /o/", 
     start: "2022-07-01T00:00:00.000Z",
     end: "2022-07-01T23:59:59.000Z",
     allDay: false
   }) {
       event {
         id
         name
         start
         end
         allDay
       }
        error
        success
      }
    }

Queries

  • Event queries
 query {
  events {
    edges {
      node {
        name
        start
        end
        allDay
      }
    }
  }
}

contributions

Feel free to contribute to this project, if you find any bugs or improvements, open an issue and send a PR about it \o/

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].