DanielCender / HN-NextJS-TS-App

Basic HackerNews clone using NextJS with TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hacker News on NextJS

A basic clone of the popular tech news feed using NextJS, React, and TypeScript.

Features

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

Run in dev:

yarn next:dev

Build for production:

yarn build

Start production build:

yarn next:start

Run on Express JS:

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

Deploy

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

About

Basic HackerNews clone using NextJS with TypeScript


Languages

Language:TypeScript 92.3%Language:JavaScript 7.7%