Calculate your Orundum and pulls by any event.
View the live site at: https://darkwebdev.github.io/ak-events/
-
Clone the repository:
git clone https://github.com/darkwebdev/ak-events.git cd ak-events -
Use Yarn for local development (recommended)
This project uses Yarn to run scripts and manage dependencies. Please use
yarninstead ofnpmfor all repository commands to avoid subtle differences in script execution and environment.Install dependencies:
yarn
Run the scraper to update
public/data/events.json:yarn scrape
Start the Vite dev server (development):
yarn dev
Build the frontend (production):
yarn build
Run the preview server (serve built files):
yarn start
Run the project's test suite (Jest):
yarn testStart the Storybook component explorer:
yarn storybook
Build Storybook for production:
yarn build-storybook
-
Open the app in your browser:
- Dev server: http://localhost:5173 (when running
yarn dev) - Preview server (after
yarn build+yarn start): the CLI will show the port (default 5173)
- Dev server: http://localhost:5173 (when running
Notes:
- Prefer
yarnfor running scripts to keep environment parity across contributors. - If you must use
npm, usenpm run <script>but be aware some scripts rely on Yarn-specific behaviors in CI or documentation.
index.html: Main HTML pagescript.js: Client-side JavaScript for loading and displaying eventsscrape.js: Node.js script for scraping events from the Arknights wiki via its MediaWiki APIpublic/data/events.json: JSON file containing the scraped events (served at/data/events.json).github/workflows/scrape.yml: GitHub Actions workflow for daily updates
This project is open source. Feel free to use and modify.