Skip to content

davjhan/guess-the-year-game

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Guess The Year Game

Banner Made by : David Han (@davjhan on github)

Try it out!

Play the game here: Guess The Year Game

Built with

  • Svelte Kit
  • Tailwind CSS (JIT)
  • Netlify
  • Uses Plausible analytics (cookie-less)

Generates a static app that is hosted on Netlify.

Get Started

⚠️ This repo will not build out of the box. It has a dependency on [davjhan-core](https://github. com/davjhan/davjhan-core) which is not published on npm. If you want to build this project, follow the steps in that package's README.

davjhan-core includes common tailwind styles, css, and components (e.g. Navbar) that will be reused between david games. I use yalc link davjhan-core on my local machine so that it builds.

Questions database

I sourced Wikipedia to hand-compile a database of questions in Airtable. I then have a script, scripts/download-questions. ts, that downloads the questions to a json file. It sits at 12kb for 120+ questions.

Commands

Run the dev server

npm run dev

Download the questions.json from Airtable database

npm run download-questions

Build and preview

npm run build
npm run preview

Deploy to Netlify

npm run deploy

About

A simple browser mini-game where you guess the year that the following event happened.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published