Skip to content

Repository files navigation

One Billion Second

Calculate your one billionth second on earth.

A static, client-only single-page app. It runs on OsloJS, a small bespoke MVC framework vendored in this repo (oslo/Oslo.js + oslo/core/*.js) — hash-based routing, fetch-based partial view loading, and {{key}} template substitution.

Getting started

npm install              # install dependencies (Node/gulp toolchain)
npm run build             # compile oslo/ -> public/ (CSS, concatenated JS, HTML/views/assets)
npm run serve              # serve public/ on http://localhost:8080

npm run serve is required (rather than opening public/index.html directly) since view fragments are loaded via fetch(), which needs HTTP.

npm run watch              # rebuild automatically on changes under oslo/**

There is no test suite (npm test is a stub) and no linter configured.

Deployment

GitLab CI (.gitlab-ci.yml) builds the app (gulp build + build-sw.mjs) and scps public/ to a server:

  • main branch → production
  • development branch → staging

License

See LICENSE.

About

Calculates your 1 billionth second from birth

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages