Skip to content

Latest commit

ย 

History

History
51 lines (35 loc) ยท 1.01 KB

README.md

File metadata and controls

51 lines (35 loc) ยท 1.01 KB

Pace Calculator

A small ReactJS application to calculate speed and pace based on time and distance.

Demo can be found at pace-calc.nu.

Nice looking layout with mobile support by @jhornsten.

screenshot

Development

Tested under node v20. Install all dependencies:

npm install -D
npm run start

Styling

The stylesheet is written in SCSS and needs to be built too src/index.css.

./node_modules/sass/sass.js --no-source-map src/scss/main.scss src/index.css

Hosting

Just symlink Nginx config to your Nginx installation. Ensure certificates exsist.

sudo ln -s /opt/www/pace-calculator/nginx.conf /etc/nginx/sites-enabled/pace-calc.nu

Google Cloud Run

# Build and push Docker image
$ gcloud builds submit \
  --tag gcr.io/zippy-cab-252712/pace-calculator

# Deploy
$ gcloud beta run deploy \
  --image gcr.io/zippy-cab-252712/pace-calculator \
  --platform managed