x3388638 / pov

A React (Next.js) app integrated with Contentful (headless CMS) collects car photography and POV driving videos to share the beauty of Taiwan.

Home Page:https://pov.tw/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pov

A React (Next.js) app integrated with Contentful (headless CMS) collects car photography and POV driving videos to share the beauty of Taiwan.

img

Dev note

Env

node: v20.9.0
npm: v10.1.0

Run locally

npm ci --force
npm run dev

Build

npm run build

run the built version:

npm start

Lint

npm run lint

Update Contentful data to local

SPACE_ID={{SPACE ID}} ACCESS_TOKEN={{ACCESS TOKEN}} npm run contentful:fetch

Deploy

The website is hosted on Vercel

  • push to any branch will trigger preview build for that branch
  • push to release branch will trigger production build

GitHub Actions

Cronjob: /.github/workflows/action.yml
It will fetch latest data from Contentful and generate sitemap list, and commit to release branch

Legacy version

Check the csr-version-2024-01 branch, which is a pure frontend app (CSR)

About

A React (Next.js) app integrated with Contentful (headless CMS) collects car photography and POV driving videos to share the beauty of Taiwan.

https://pov.tw/

License:MIT License


Languages

Language:TypeScript 96.9%Language:JavaScript 3.0%Language:Shell 0.1%