/go-graphql-api

API for a Twitter-based social network using GraphQL

Primary LanguageGo

Go Postgres GraphQL Docker

Social Network GraphQL API

FeaturesHow to runTestsAuthor

Social Network API based on Twitter using GraphQL

schema

Features

  • Create a account
  • Login to a account
  • Create posts
  • Reply to posts
  • Delete posts

How to run

On Docker

Requirements

  1. Clone the project.
git clone https://github.com/RianNegreiros/go-graphql-api.git
  1. Run with Docker
make run-docker

Access the GraphQL playground on localhost:8080

Tests

Unit tests

make test

Integration tests

  1. Setup .env.test

  2. Setup database for tests. You can use the docker compose, running `

docker-compose up test_db -d
  1. Run the tests
make test-integration

Manual Tests

Run in Insomnia}

Author

Rian Negreiros Dos Santos

Linkedin Badge

Gmail Badge