Giter Club home page Giter Club logo

adonis-graphql-server's Introduction

adonis-graphql-server

A GraphQL server built with Apollo server and AdonisJs

Getting Started

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

git clone [email protected]:ammezie/adonis-graphql-server.git

If you use https, use this instead

git clone https://github.com/ammezie/adonis-graphql-server.git

Setup

Run the command below to install dependencies

npm install

Environment variables

Duplicate .env.example and rename it .env

Migrations

Setup your database and enter the following in .env

DB_CONNECTION=mysql
DB_HOST=localhost
DB_DATABASE=adonis_graphql_server
DB_USER=root
DB_PASSWORD=

Run the following command to run migration.

adonis migration:run

Finally, start the application:

adonis serve --dev

and visit http://127.0.0.1:3333 to see the application in action.

adonis-graphql-server's People

Contributors

ammezie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

adonis-graphql-server's Issues

Self referencing config has been depreciated. We recommend to you manually define the value for app.appKey

I set appKey in /etc/environment but I am getting this error message when I browse to http://127.0.0.1:3333/graphiql :

Self referencing config has been depreciated. We recommend to you manually define the value for app.appKey
Learn more at https://adonisjs.svbtle.com/depreciating-self-reference-inside-config-files
Self referencing config has been depreciated. We recommend to you manually define the value for app.appKey
Learn more at https://adonisjs.svbtle.com/depreciating-self-reference-inside-config-files
2018-12-04T16:08:54.882Z - warning:
WARNING: Adonis has detected an unhandled promise rejection, which may
cause undesired behavior in production.
To stop this warning, use catch() on promises and wrap await
calls inside try/catch.

RuntimeException: E_MISSING_APP_KEY: Make sure to define appKey inside config/app.js file before using Encryption provider
at Function.missingAppKey (/home/begueradj/Development/Draft/adonis-graphql-server/node_modules/@adonisjs/generic-exceptions/src/RuntimeException.js:50:12)
at new Encryption (/home/begueradj/Development/Draft/adonis-graphql-server/node_modules/@adonisjs/framework/src/Encryption/index.js:35:33)
at Object.app.singleton [as closure] (/home/begueradj/Development/Draft/adonis-graphql-server/node_modules/@adonisjs/framework/providers/AppProvider.js:240:14)
at Ioc._resolveBinding (/home/begueradj/Development/Draft/adonis-graphql-server/node_modules/@adonisjs/fold/src/Ioc/index.js:231:68)
at Ioc.make (/home/begueradj/Development/Draft/adonis-graphql-server/node_modules/@adonisjs/fold/src/Ioc/index.js:807:19)
at injections.map (/home/begueradj/Development/Draft/adonis-graphql-server/node_modules/@adonisjs/fold/src/Ioc/index.js:318:19)
at Array.map ()
at Ioc._makeInstanceOf (/home/begueradj/Development/Draft/adonis-graphql-server/node_modules/@adonisjs/fold/src/Ioc/index.js:317:44)
at Ioc.make (/home/begueradj/Development/Draft/adonis-graphql-server/node_modules/@adonisjs/fold/src/Ioc/index.js:799:19)
at AuthManager.getScheme (/home/begueradj/Development/Draft/adonis-graphql-server/node_modules/@adonisjs/auth/src/Auth/Manager.js:82:16)

How to fix this?
Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.