Skip to content

ssk63/dsmn8-web-feed

Repository files navigation

Dsmn8

This project was generated using Nx.

Pre-requisites

Install NodeJS from https://nodejs.org

Cloning the Code

Clone the code using the following command

git clone https://github.com/ssk63/dsmn8-web-feed.git

Running the Application

Install the npm packages using the following command

npm install

Start the application using the following command

ng serve web

The application runs on http://localhost:4200/

Setup JSON Server For Fake GraphQL Endpoint

First Install the JSON GraphQL server globally. Run the following command

sudo npm install -g json-graphql-server

Then start the GraphQL server. Run the following command in the terminal.

npm run graphql-server

Navigate to http://localhost:5000/.

Example GraphQL allFeeds query:

query AllFeeds {
    allFeeds {
      id
      name
      content
      text
      boostPostMetrics
      imgUrl
      videoUrl
      isShared
      isLiked
      authorName @client
      __typename
    }
  }