Skip to content

caioflores/graphql-auth-example

Repository files navigation

🔨   Install and Usage

First, you need to clone de graphql-auth-example project:

git clone git@github.com:caioflores/graphql-auth-example.git

Install dependecies:

yarn

Than create a .env file in the root folder with these variables (values are examples):

PG_USERNAME=postgres
PG_PASSWORD=1234
PG_DATABASE=test_database
PG_HOST=localhost
PG_PORT=5432

ENVIRONMENT=development

API_SECRET=BwdwtN%h6%FL05GrtFG

Now you can create the database and run the project:

./node_modules/.bin/sequelize db:create

yarn start

That's it. Your project is running in http://localhost:3000/test

About

An example implementation of a server using GraphQL, graphql-yoga and Sequelize (with PotgreSQL) with authentication and public/private methods.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors