Skip to content

bombsimon/pace-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

62 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

About

๐Ÿƒ๐Ÿผโ€โ™€๏ธ Calculate your moving speed and pace

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published