A basic clone of the popular tech news feed using NextJS, React, and TypeScript.
Pretty basic, as I've lost count of how many HackerNews clones I've made so far.
- View top 500 articles (metered with a Read More btn to not overload your browser)
- View article comments
- View nested comments
Run in dev:
yarn next:dev
Build for production:
yarn build
Start production build:
yarn next:start
Building is the same for Express or Next's default server.
The default start
and dev
scripts point to this case because Google Cloud's App Engine works best using an Express JS server.
Run in dev:
yarn dev
Run in Production
yarn start
Authenticate with Google Cloud local SDK (i.e. gcloud auth login
).
Select your current project with: gcloud config set project PROJECT_ID
Deploy this app to Google Cloud App Engine, provided you've enabled the API and have the right permissions:
gcloud app deploy app.yml