doomsday/README.md

27 lines
797 B
Markdown
Raw Permalink Normal View History

2020-03-14 13:07:27 +01:00
# Doomsday
Given a random date, can you determine the weekday of that date?
[Conway's Doomsday rule](https://en.wikipedia.org/wiki/Doomsday_rule) provides a simple set of steps to calculate the
weekday of any date in the Gregorian calendar.
This tool will help you practice the algorithm by giving you random dates to test on.
Set this as your homepage to get yourself to practice this every day.
2020-05-03 23:50:55 +02:00
## Development
### Requirements
* [npm](https://www.npmjs.com/)
### Setting up
```shell script
# Install dependencies (only needed once)
$> npm ci
```
### Building
```shell script
2020-06-07 12:24:40 +02:00
# Build the tool in `dist/` for development
2020-05-03 23:50:55 +02:00
$> npm run dev
# Same as above, but automatically rerun it whenever files are changed
$> npm run dev:server
2020-06-07 12:24:40 +02:00
# Build the tool in `dist/` for deployment
2020-05-03 23:50:55 +02:00
$> npm run deploy
```