仿掘金web网站,使用服务端渲染。主要技术:nuxt + koa + vuex + axios + element-ui 。
The nuxt-juejin-project is a learning project that mimics the functionality of the Juejin website using Nuxt.js. It utilizes technologies such as Nuxt.js, Koa, Vuex, Axios, and Element-UI. The project syncs all data with Juejin, utilizing Koa as a middleware to forward the API requests. The project also includes server-side rendering using asyncData and incorporates various Nuxt.js configurations and techniques, including server-side rendering, API forwarding, route configuration, and authentication.
To install the nuxt-juejin-project theme, follow these steps:
git clone https://github.com/ChanWahFung/nuxt-juejin-project.git
cd nuxt-juejin-project
npm install
npm run dev
Note: if you experience slow cloning from GitHub in China, you can clone from Gitee instead:
git clone https://gitee.com/ChanWahFung/nuxt-juejin-project.git
The nuxt-juejin-project is a learning project that replicates the functionality of the Juejin website using Nuxt.js. It utilizes various technologies and techniques, including server-side rendering, API forwarding, and state management. The project provides a useful reference for learning server-side rendering workflows. However, it is important to note that the project is the author’s first time using Nuxt.js, so some details may not be optimal.