Skip to content

Repository files navigation

Voices from Auschwitz

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Deploy

Note: Deployment is restricted to authorised Cloudflare accounts.

This project deploys to Cloudflare Workers via Wrangler. Run:

npm run deploy

Deployment uses local Cloudflare auth. Only users with the required Cloudflare permissions can deploy.

Demo mode

Use demo mode to load content from Google Drive instead of bundled assets.

  • Enable: append ?demo=trueto the site URL, e.g. http://localhost:1234/?demo=1
  • Behavior: data is fetched via /api/data/{output|people|home-and-contact}
  • To see the logs about the fetch request, open the Chrome Dev Tools (macOS: Cmd+Option+I, Windows: Ctrl+Shif+I) and select the Network tab

Add content

Project output items are in src/assets/data/output.

People items are in src/assets/data/people.

Define items in the JSON files and put the images in the images folder.

Convert images

For optimal performance we serve image assets in different sizes. (Note: this step is optional.)

When adding a new image asset, place them in scripts/image-conversion/input in the largest size available. Image files should have the following in their file names:

  • coverImages in output.json => the filename should have '-home' e.g. image-2-home.png

  • image in output.json => the filename should have '-output' e.g. image-2-output.png

  • image in people.json => the filename should have '-people' e.g. Gabor_Mihaly_Toth-people.png

To convert the images, run npm run images. Copy over the converted files from scripts/image-conversion/ouput to their appropriate folder, so:

  • ouput and homepage output items: src/assets/data/output/images

  • people items: src/assets/data/people/images

About

Voices from Auschwitz, VueJs singe page application

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages