Giter Site home page Giter Site logo

srijan-d / news-app-master Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 384 KB

News web app with live data built with Next13.3,TypeScript, Tailwind. Dark/Light mode using next-themes. GraphQL for batching multiple api calls. StepZen for generating TypeScript definitions automatically. Live data pulled via Mediastash Api. Revalidation and prebuilding pages with generateStaticParams reducing wait time.

Home Page: https://srijan-live-news-app.vercel.app/

TypeScript 91.88% CSS 3.13% JavaScript 4.98%
gql graphql mediastack next-theme next13 nextjs stepzen tailwindcss typescript cache

news-app-master's Introduction

Currecntly: fixing few bugs in production related to caching and read the more ts file
preview of the app can be found below image image image

News Web Application with Live Data

This is a web application built with Next13.3, TypeScript, and GraphQL, utilizing StepZen for generating TypeScript definitions automatically. Live data is pulled via the Mediastash API with revalidation of stale data every 20 seconds using next revalidate, prebuilt pages along with instant caching to reduce wait time and pulling dynamic data at each request. The application also includes a dark/light mode feature using next-themes and tailwindcss.

Technologies Used

  • Next13.3
  • TypeScript
  • GraphQL
  • StepZen
  • Mediastash API
  • Next-Themes
  • TailwindCSS

Features

  • Live data from the Mediastash API with revalidation
  • GraphQL for efficient batching of multiple API calls
  • Automatic TypeScript definition generation with StepZen
  • Prebuilt pages to reduce wait time
  • Streaming SSR for incremental rendering parts of UI to the client.
  • Custom svg loader using React Suspense under the hood.
  • Dark/light mode feature with next-themes and tailwindcss

Installation and Usage

  1. Clone the repository: git clone https://github.com/your-username/news-web-app.git
  2. Install dependencies: npm install or yarn or pnpm install
  3. Start the development server: npm run dev or yarn run dev or pnpm run dev
  4. Open http://localhost:3000 in your browser to view the app.

Contributing

Contributions are welcome! Please feel free to open issues or pull requests.

news-app-master's People

Contributors

srijan-d avatar

Stargazers

 avatar  avatar  avatar  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.