Skip to content

nypublicradio/gothamist-vue3

Folders and files

NameName
Last commit message
Last commit date
Nov 27, 2024
Sep 16, 2024
Jan 9, 2025
Feb 13, 2025
Jan 16, 2025
Jan 31, 2025
May 22, 2024
Jan 16, 2025
Sep 26, 2024
Oct 29, 2024
Aug 24, 2022
Apr 17, 2024
Oct 19, 2023
Dec 15, 2022
Jun 7, 2023
Dec 5, 2023
Aug 2, 2022
Mar 15, 2022
Oct 19, 2023
Oct 19, 2023
May 18, 2022
Aug 8, 2024
Mar 18, 2022
Oct 26, 2023
May 2, 2022
Oct 19, 2023
Aug 8, 2024
May 6, 2024
Oct 19, 2023
Oct 19, 2023
Sep 16, 2024
Jan 9, 2025
Jan 9, 2025
Oct 26, 2023
Nov 28, 2023

Repository files navigation

Gothamist Web Client

Setup

Requirements:

node version 18

Create .npmrc file

To install our nypr-design-system dependency you need to create a personal access token through Github and add it to a local .npmrc file.

Create a personal access token in Github under Settings -> Developer settings -> Personal access tokens -> Tokens (classic). You will need to give your token the read:packages permission.

Copy the sample .npmrc file to a local version (will be .gitignore'd),

cp .npmrc.sample .npmrc

and add your token to the end of line 2 of .npmrc.

Setup git hooks (optional)

Set up a pre-commit hook to run eslint with autofix before each commit

npx simple-git-hooks

Recommended VS Code plugins:

Vue Language Features (Volar) TypeScript Vue Plugin (Volar) ESLint

This project uses antfu/eslint-config, follow the instructions there to setup your VSCode to autoformat and fix errors

Development

Start the development server on http://localhost:3000

npm run dev

Run linter and tests

npm run test

If linter fails you can try to autofix errors

npm run lint:fix

Production

Build the application for production:

docker build -t gothamist-vue3 .
docker run -p 3000:3000 -e HOST=0.0.0.0 gothamist-vue3 -e API_URL=https://api.demo2.wnyc.net