Skip to content

emrecorbacii/express-graphql-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-graphql-api

Installation

Using npx:

$ npx express-graphql-api my-api
$ cd my-api
$ npm start || $ npm run dev

Using Git :

  1. visit the repository
  2. Use this template => create new repository

In .env :

set MONGODB_URI if you want.

PORT =3001
GENERATE_DEV_PASSWORD = devPass
GENERATE_DEV_SECRET = dev-secret

MONGODB_URI="your mongodb URI"

to use Apollo GraphQL :

  1. Visit "http://localhost:3001/gql/devPass/"nickname"".
  2. Copy the token.
  3. Open Apollo Sandbox.
  4. Go to options => headers => set new header named "auth".
  5. Past the token to the "auth" header's value field directly.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published