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.
Tested under node
v20. Install all dependencies:
npm install -D
npm run start
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
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
# 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