Skip to content

A scrollable modern news feed that creates statistics about the people who use it, using Tailwind, Vue, Dynamically scraped data via Cheerio, Request-Promise & fs (node native)

Notifications You must be signed in to change notification settings

RL4444/news-feed-with-user-interaction-statistic-generation

Repository files navigation

BBC News Feed With User Tailored Feed and Useage Stats Generation

A scrollable modern news feed that creates statistics about the people who use it, using Tailwind, Vue, Dynamically scraped data via Cheerio, Request-Promise & fs (node native)

Using the metrics generates when a user 'favourites' a story or clicks 'read more', we give the user a mix of their favourite genre of news back in the tab My Feed.

TODO: Tags stats will be implemented in the /user-stats route (the icon in the top left of the screen)

To Use This App

Clone this repo install dependencies using npm or yarn (npm install or yarn) start app using npm run dev or yarn dev

About this App

This App is created from a view point of showcasing good UX/UI principles across all browser and viewports, and creating useful data quickly with cheerio.

side note: The data is purposefully not served via an API, but one could very easily be integrated. You could also schedule the scrape process using node-cron or something similar on an express server hourly. The package-json scrape script is what should be automated.

VITE CONFIG

Recommended IDE Setup

VSCode + Volar (and disable Vetur).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Lint with ESLint

npm run lint

About

A scrollable modern news feed that creates statistics about the people who use it, using Tailwind, Vue, Dynamically scraped data via Cheerio, Request-Promise & fs (node native)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published