This is an app where you can view and submit feedbacks. You can play with it here.
The tech stack: Vue 3, Nuxt 3, Tailwind, TS, MongoDB, Mongoose, Zod, VeeValidate, Vitest, Testing Library.
git clone
this repo- Install
pnpm
on your machine - Create and fill in
.env
file pnpm i
pnpm dev
- App should be live in
localhost:3000
pnpm test
to run the automated tests
- I don't want to reinvent the wheel, thus I use design system components from Shadcn Vue. This allows me to get accessible and keyboard-navigable components quickly.
- I implement FE form validation, so user get instant feedback while typing. I also implement BE form validation, so the stored data is ensured to be clean. Thanks to Zod, the same schema can be reused to validate in FE and BE. The Zod schema is also used to generate Mongoose schema and the TS interface. See this commit.
- I added a Vitest component test to ensure that the page is functioning properly. See this test file.
- I implemented Tiptap to add Markdown support for the feedback body, so users can describe their feedback better. See this commit.
- I made it tablet and desktop responsive.
- Simplify form markup in
FeedbackCreateForm.vue
. - Write component test for
FeedbackCreateForm.vue
. - Use vue-i18n instead of hardcoding texts.
- Make the app mobile responsive.
- Add features: filter, sort, pagination.