Giter Site home page Giter Site logo

jamshaidazeem / news-feed-app-using-server-sent-events Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 174 KB

This project is using angular to develop frontend and node-express to develop backend, front end shows news feed delivered through SSE from node express server

HTML 7.21% TypeScript 65.99% SCSS 3.11% JavaScript 23.30% CSS 0.39%

news-feed-app-using-server-sent-events's Introduction

News Feed App Using Server Sent Events

This project is using angular to develop frontend and node-express to develop backend, front end shows news feed delivered through SSE from node express server


A Node.js backend server (server directory) that implements a route for getting SSE requests, initial request from client at this route sets response headers required to establish a connection for SSE.

In order to generate data for SSE demonstration the api from Newyork Times https://api.nytimes.com/svc/news/v3/content is used.

A simple http route is used to fetch all the sections from api, so client can subscribe for SSE against a particular section.

On request from client, server gets section name from SSE url and using API gets the details, server than start sending each news event at the interval of 1 second untill all the news sent.

An Angular application (client directory) implements news interface using tailwindcss https://tailwindcss.com

Following are highlights of this project:-


To set node version for the server and client, run nvm use in both the server and client directories.

Run npm install in both the server and client directories.

To initiate the server, execute npm run start within the server directory.

To launch the client, execute ng serve within the client directory.

news-feed-app-using-server-sent-events's People

Contributors

jamshaidazeemofficial avatar jamshaidazeem avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.