Sign inSign up

na4va4/js_graphql

By na4va4

•Updated almost 2 years ago

This project is a basic GraphQL server built using Apollo Server and JavaScript.

Image
0

394

na4va4/js_graphql repository overview

⁠js_graphql

⁠Table of Contents

  1. General Info⁠
  2. Technologies⁠
  3. Installation⁠

⁠General Info


This project is a basic GraphQL server built using Apollo Server and JavaScript. It serves a simple query that returns a "Hello World" message as a response. The purpose of this application is to demonstrate a minimal GraphQL implementation in JavaScript using Apollo Server.

  • GraphQL Query:
    • Query: hello
    • Response: "Hello World from GraphQL in javascript"

⁠Technologies


A list of technologies used within the project:

⁠Installation


Follow these steps to install and run the project:

⁠Via GitHub

Ensure you have Node.js installed on your machine:

node --version  
npm --version

Copy the repository

git clone https://github.com/nava2105/js_graphql.git

Enter the directory

cd ../js_graphql

Install the dependencies

npm install  

Run the server

node app.js

Open a browser and enter to Server: http://localhost:4000⁠

Or to review the endpoints in Swagger enter to http://localhost:4000/api-docs⁠

⁠Via Docker-hub

Pull the image from Docker-hub

docker pull na4va4/js_graphql

Start a container from the image

docker run -p 4000:4000 na4va4/js_graphql

Open a browser and enter to Server: http://localhost:4000⁠

Or to review the endpoints in Swagger enter to http://localhost:4000/api-docs⁠

Tag summary

Content type

Image

Digest

sha256:6b07d00dc…

Size

393.2 MB

Last updated

almost 2 years ago

docker pull na4va4/js_graphql