Skip to content

leflon/metrodle

Repository files navigation

Metrodle

Wordle for Paris Metro stations

TypeScript Svelte SQLite OpenData IDFM ESlint Prettier

This project is not affiliated with, endorsed by, or connected to RATP or Île-de-France Mobilités in any way.

About

This game is just like Wordle, but you guess Paris metro stations. Rather than letters, your hints are:

  • Lines
  • Town
  • Fare zone
  • Distance from objective

Play now!

Installation

Clone this repository

git clone https://github.com/leflon/metrodle

or

gh repo clone leflon/metrodle

Install environment

Install dependencies

npm install

Fetch necessary data

This project relies on the Ile-de-France Mobilités OpenData API to retrieve all metro lines and stops data.

To populate your SQLite database with this data, run the fetch.js script:

node fetch.js [--wipe|-w] [--local|-l]

Arguments:

  • --wipe, -w: Wipes the previous content of your database. By default, it will keep everything as it an only add new entries.
  • --local, -l: When you fetch from the OpenData, notice that you have three json files stored, corresponding to the plain downloaded data. To avoid remotely fetching everytime, by default, the script will use the local data to function.

Populate env variables

Rename .env.example to .env and fill in the values.

Start the dev environment

npm run dev

Author

Paul Leflon

About

Wordle but for Paris Metro stations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors