mirror of
https://github.com/ssyyhhrr/stewardle.git
synced 2025-11-08 10:33:46 -05:00
Ergast Jolpica text replacement
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
<h3 align="center">Stewardle</h3>
|
<h3 align="center">Stewardle</h3>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
A Wordle-inspired game designed for the web. Players must guess the randomly selected F1 driver using statistics retrieved from the Ergast API. Created with Express and Node.js.
|
A Wordle-inspired game designed for the web. Players must guess the randomly selected F1 driver using statistics retrieved from the Jolpica API. Created with Express and Node.js.
|
||||||
<br />
|
<br />
|
||||||
<a href="https://stewardle.com/">View Demo</a>
|
<a href="https://stewardle.com/">View Demo</a>
|
||||||
·
|
·
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
<img src="https://raw.githubusercontent.com/ssyyhhrr/stewardle/refs/heads/main/assets/screenshot.png" width="300"/>
|
<img src="https://raw.githubusercontent.com/ssyyhhrr/stewardle/refs/heads/main/assets/screenshot.png" width="300"/>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
A Wordle-inspired game designed for the web. Players must guess the randomly selected F1 driver using statistics retrieved from the Ergast API. Created with Express and Node.js.
|
A Wordle-inspired game designed for the web. Players must guess the randomly selected F1 driver using statistics retrieved from the Jolpica API. Created with Express and Node.js.
|
||||||
|
|
||||||
<!-- CONTRIBUTING -->
|
<!-- CONTRIBUTING -->
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|||||||
2
app.js
2
app.js
@@ -272,7 +272,7 @@ axios.get("https://api.jolpi.ca/ergast/f1/1950/driverStandings.json?limit=1000")
|
|||||||
let data = fs.readFileSync(driversPath)
|
let data = fs.readFileSync(driversPath)
|
||||||
drivers = JSON.parse(data)
|
drivers = JSON.parse(data)
|
||||||
} else {
|
} else {
|
||||||
throw "Ergast API is unreachable and the drivers.json cache has not been built. Please try again when the Ergast API is online."
|
throw "Jolpica API is unreachable and the drivers.json cache has not been built. Please try again when the Jolpica API is online."
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user