This is a Vue3 project using the Reddit API to build a web application that loads Reddit posts.
You can view the application at vue3-reddit-client.surge.sh!! It is still a work-in-progress!
It is modeled after Coding Garden's Twitch streams that are available on YouTube:
- Working on a Reddit Client with the Vue 3 Composition API | Part 1
- Working on a Reddit Client with the Vue 3 Composition API | Part 2
- Working on a Reddit Client with the Vue 3 Composition API | Part 3
Some note-worthy differences from the stream:
- The stream was done in November 2020 when Vue 3 was still very new and all supporting libraries were in beta. This project uses Vue 3.2.x, which makes use of
script setupdifferently than it is handled in this stream. - The
SubReddit.vuecomponent is written in JSX in the stream. It is just written in JavaScript in this application. - It defaults to
r/kittensinstead ofr/awwbecause kittens are cuter.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
See Vite Configuration Reference.
npm installnpm run devnpm run buildLint with ESLint
npm run lint