Skip to content

Marrowsed/ClassWithGraphQLWithNode.js

Repository files navigation

Node.js Express Postgres GraphQL

Class with Roles REST API

Create your own Database and use GraphQL Playground to fetch it !

Perfect for those who are starting using GraphQL projects

🪧 Vitrine.Dev
✨ Nome Class With GraphQL
🏷️ Tecnologias javascript, node.js, express, graphql, postgresql

Tecnologies and Frameworks

Node.js

How To Use It ?

First of all ! Make sure you have Node installed and updated it as PostgreSQL ! After that:

npm install
npm run api

It'll install all the dependencies from the projects and run the server in http://localhost:3000

http://localhost:3000/doc for the Documentation !

PostgreSQL

The routes are made, you just need to prepare the data !

Make sure you prepare your environment (DB Name, Password and Type) in "api/config/config.json"

GraphQL

npm run graphql

Then GraphQL'll be running in http://localhost:4000

Be welcome to change anything in your code !