Overview:
The HeroStory 王者荣耀故事站 is a small program that provides users with a platform to explore the background stories of heroes in the popular game “王者荣耀” (King of Glory). The developer was inspired by the anniversary celebration of the game and their personal interest in the characters and voice acting. The small program allows users to easily access the stories behind the heroes. The developer notes that due to the project being developed in their spare time, the presentation of the web crawling data on the PC side is a bit rough. The technology stack for this project includes small program, Nuxt, Koa2, Vue 2.0, Vuex, Nginx, and PM2.
Features:
- Crawling Data: The small program includes a web crawler that retrieves data from the official website of “王者荣耀故事站” (King of Glory Story Station). The crawler utilizes the cheerio module and request-promise module to retrieve the desired data. The Iconv module is used to convert data into proper Chinese characters when necessary.
- Nuxt.js Framework: The project utilizes the Nuxt.js framework, which is based on Vue.js. Nuxt.js focuses on the UI rendering of client-side and server-side infrastructure. It provides a flexible application framework that can be used to initialize new projects or integrate into existing Node.js projects. The project configuration, including modules, plugins, and webpack, can be easily configured using the nuxt.config.js file.
- Small Program Development: The developer mentions that this is their first small program project. They found similarities between data binding in the small program and Vue.js, which helped with the development process. The article also references a helpful article (“一起脱去小程序的外套 - 微信小程序架构解析) that provides insights into the architecture of WeChat small programs.
Installation:
The article does not provide specific installation instructions or code snippets for installing the theme.
Summary:
The HeroStory 王者荣耀故事站 is a small program developed by the author to provide users with access to the background stories of heroes in the game “王者荣耀”. The small program utilizes web scraping techniques and the Nuxt.js framework to retrieve and display data from the official website of the game. The author recommends resources for further understanding the development process and provides links to the small program and the web crawler on GitHub.