Skip to content

SwaphQL: SWAPI integration with NestJS, Serverless, Lambda and GraphQL

Notifications You must be signed in to change notification settings

zeropdro7/swaph-ql

Repository files navigation

SWAPHQL

Correr API

Para correr la API, asegurarse de tener instalado:

  • node.js
  • npm
  • NestCLI
  • MySQL
  • axios

Luego, correr la API usando:

# Instalar dependencias
npm install

# Testear la instalación. Todo debe pasar. Tests Unitarios.
npm run test

# Copiar el archivo de credenciales. Asegurarse de llenar toda la información necesaria.
cp .env.example .env

# Correr el proyecto Nest.
npm run start

Modo 'watch'

$ npm run start:dev

## Otros Test

# e2e tests
$ npm run test:e2e

# Test coverage
$ npm run test:cov

Con esto, el backend estará corriendo en localhost:7000. Puedes empezar haciendo consultas en localhost:7000/graphql y usar GraphQL Playground en el navegador.

Ejemplos de Consultas de SwaphQL en Playground:

crearPlaneta

(Puede elegir solo los campos que quiere que se devuelva)

--

obtenerPlanetasCreados

(Puede elegir solo los campos que quiere que se devuelva)

--

obtenerNombrePlaneta

(Integración con SWAPI)

About

SwaphQL: SWAPI integration with NestJS, Serverless, Lambda and GraphQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published