https://github.com/freedmand/newyearstimer
Play YouTube videos synced so that something special happens right at midnight on New Year’s Eve
https://github.com/freedmand/newyearstimer
countdown new newyear song timer video website years
Last synced: 4 months ago
JSON representation
Play YouTube videos synced so that something special happens right at midnight on New Year’s Eve
- Host: GitHub
- URL: https://github.com/freedmand/newyearstimer
- Owner: freedmand
- Created: 2017-12-30T12:24:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-30T13:17:32.000Z (over 8 years ago)
- Last Synced: 2025-02-22T04:24:37.427Z (over 1 year ago)
- Topics: countdown, new, newyear, song, timer, video, website, years
- Language: HTML
- Homepage: https://newyearstimer.com
- Size: 87.9 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# New Year's Timer
This is the source code for [New Year's Timer](https://newyearstimer.com). It lives
at https://github.com/freedmand/newyearstimer.
## Get started
New Year's Timer is built with NodeJS. Once you have Node installed, install the
dependencies with
```bash
cd newyearstimer
npm install
```
You will need to configure your own [Reddit API key](https://github.com/reddit/reddit/wiki/OAuth2) and [YouTube Data API key](https://developers.google.com/youtube/v3/). Create a file in `src/config.js`
which is a dictionary containing these values:
```
export const API_KEYS = {
ytdata: '...', // your YouTube Data API key
redditClient: '...', // your Reddit app's client ID
redditSecret: '...', // your Reddit app's secret ID
redditRedirect: '...', // your URL to redirect to on success. Can be localhost
// ID of flair in /r/NewYearsTimer to show countdowns by posts
flairId: '7cf5f0e8-ec1a-11e7-8107-0ed8d186392c',
};
```
Then start the application with
```bash
npm run dev
```
Navigate to [localhost:5000](http://localhost:5000). You should see New Year's Timer
running. Edit a component file in `src`, save it, and reload the page to see
your changes.
To build the application and minify source code, create a `dist/` folder and run
```bash
npm run build
```
## Contributions
New Year's Timer was designed and coded by Dylan Freedman.
New Year's Timer utilizes the following libraries:
* [Svelte](https://github.com/sveltejs/svelte): for implementing framework-free
components
See the [about page](https://newyearstimer.com/about.html) for more information.