This repo serves as an introduction to a few concepts in Svelte, using the WikiMedia HTTP API.
This project does three things:
- Search for 10, 20 or 50 pages with a title query
- Display thumbnails with excerpts
- Allow to sort results by relevance / A-Z / last edition
In the terminal:
git clone https://github.com/romaincazier/Svelte-intro-MediaWiki-API.git
cd Svelte-intro-MediaWiki-API
npm install
npm run dev
Build the app using:
npm run build
And put the content of your public
folder where you want to.