Skip to content

segmentationfaulter/hnpwa

Repository files navigation

Hacker News PWA

This project is a Hacker News PWA that follows the specs from tastejs/hacker-news-pwas.

Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/segmentationfaulter/hnpwa.git
  2. Install NPM packages
    npm install

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:8080 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Builds the app for production to the dist folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

npm run analyze-bundle

Analyzes the bundle size of the project.

Project Structure

/Users/saqib/learning/hnpwa/
├───.gitignore
├───.postcssrc.json
├───package-lock.json
├───package.json
├───postcss.config.js
├───tailwind.config.ts
├───tsconfig.json
├───webpack.analyze.js
├───webpack.common.js
├───webpack.dev.js
├───webpack.prod.js
├───.git/...
└───src/
    ├───App.tsx
    ├───index.css
    ├───index.html
    ├───index.tsx
    ├───Schema.ts
    ├───shared/
    │   └───SubTitle.tsx
    ├───utils/
    │   ├───fetcher.ts
    │   └───urls.ts
    └───views/
        ├───AppLayout.tsx
        ├───Comments.tsx
        ├───FeedItems.tsx
        ├───Item.tsx
        ├───NotFound.tsx
        └───User.tsx

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published