This project is a Hacker News PWA that follows the specs from tastejs/hacker-news-pwas.
To get a local copy up and running, follow these simple steps.
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/segmentationfaulter/hnpwa.git
- Install NPM packages
npm install
In the project directory, you can run:
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.
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!
Analyzes the bundle size of the project.
/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