This website serves as a web frontend and backend for WiiLink's Mii Contesnt Channel.
You can access and view plaza Miis, ordered by newest, most popular and by searching. You can also consult Artisans and their associated Miis, as well as Contests and their entries.
The website also includes a free and public API to use.
For the frontend, Vue 3 with TypeScript and Tailwind CSS are used. For the backend, Express is serving the website and the JSON responses.
You'll need the Mii Contest Channel Server running, including the PostgreSQL server.
Next, clone this repository, fill out the .env for both the frontend and backend, and open a terminal in the folder:
npm install
npm run startBoth the frontend and backend should start. You can also start the frontend and backend individually by typing
npm run start:frontend
npm run start:backendTo build and run the website the website, simply type in the frontend folder:
npm run buildA dist folder should appear. Next, just move it to backend/public and start the backend.
The Mii Contest Channel API is public and free to use.
However, please note that a rate limit has been set on the server to minimize strain on the server. Meaning that you can make 100 requests per 15-minute window. Exceeding this limit will result in a 429 HTTP status code, and you'll have to wait for the next window.
In total, 11 routes are available to use.
Some routes also includes pagination. To change pages, use ?page= on the routes with the "total_pages" field in the JSON response.
For POST requests, the body needs to be a JSON.
https://miicontest.wiilink.ca/api/plaza/tophttps://miicontest.wiilink.ca/api/plaza/popularhttps://miicontest.wiilink.ca/api/plaza/allhttps://miicontest.wiilink.ca/api/plaza/miiUse the channel's entry code to fetch.
{
"entry_code": "5403-6703-1484"
}https://miicontest.wiilink.ca/api/plaza/searchUse either the initals, nickname or entry ID to search.
{
"search": "Matt"
}https://miicontest.wiilink.ca/api/artisanshttps://miicontest.wiilink.ca/api/artisans/artisanUse the Artisan ID for this.
{
"artisan_id": 100000005
}https://miicontest.wiilink.ca/api/artisans/searchUse either the nickname or Wii Number to search.
{
"search": 2038467325237853
}https://miicontest.wiilink.ca/api/contestshttps://miicontest.wiilink.ca/api/contests/contestUse the Contest ID for this.
{
"contest_id": 11
}https://miicontest.wiilink.ca/api/testnumberSend the number formatted like the following
{
"number": "0000-0000-0000-0000"
}This project is licenced under the MIT License
