Sign inSign up

rvancea/qa-practice-graphql

By rvancea

•Updated almost 4 years ago

GraphQL application

Image
0

1.1K

rvancea/qa-practice-graphql repository overview

⁠This application has been designed to be used by the QA Engineers to practice and improve their GraphQL testing skills. It includes the following

Root Query

  • Song (id, title, release, album, genre, authorId, author)
  • Songs
  • Author (id, name, email, homeTown, songs)
  • Authors

Mutation

  • addSong
  • addAuthor

⁠Prerequisites

Make sure that you have Docker installed on your machine (PC/Laptop).

⁠How to run the app

docker run -d --rm --name qa-practice-graphql -p 5000:5000 rvancea/qa-practice-graphql

⁠Congrats! Now you can open the app via browser

http://localhost:5000/graphql
⁠App debugging & logs
docker logs qa-practice-graphql
⁠Notes regarding the running command
  • -p PUT_HERE_ANOTHER_PORT:5000 any other desired port that will be used by the app
  • remove '--rm' from the command if you want to persist the container for further use; otherwise, when you stop the app, the container will be removed as well
  • -d makes the app to run in the background of your terminal. It does not receive input or display output. If you want the logs to be instantly shown in the terminal, remove this flag.
⁠Tech stack of the app

JS, NodeJS, graphql, express-graphql, express

⁠Note: when restarting the app, the database will be reset to initial default records. It means that if you added/updated records, they will no longer be available.
⁠Contact me for improvements/ideas

https://razvanvancea.ro/#contact⁠

Tag summary

Content type

Image

Digest

sha256:c1687345f…

Size

336.1 MB

Last updated

almost 4 years ago

docker pull rvancea/qa-practice-graphql