This project is a faithful replica of the complete article "A Friendly Introduction to SVG". The objective was to reproduce the design, user experience, and all interactive SVG examples.
Tech Stack:
- Vue.js
- Tailwind CSS
- Shadcn UI
To minimize development time, the best approach is to leverage existing tools.
- Project Setup: Initialize the Vue.js project with Tailwind CSS and Shadcn UI.
- Explore the Ecosystem: Before writing custom code, research Vue.js or general JavaScript libraries for SVG animation and manipulation. The goal is to find tools that can handle complex interactions out-of-the-box.
- Implement the First Snippet: Use the first SVG example in the article as a proof-of-concept. Try to build it using the libraries you found. This will quickly validate your chosen tools and establish a workflow for the rest of the project.
- Build Incrementally: Continue recreating the article section by section, prioritizing the use of pre-built solutions over custom code.
- Framework: Vue.js
- Libraries & Tools: Tailwind CSS, CodeMirror 6, Shadcn UI
- Development Tools: Prettier, ESLint
-
Clone the repository and go to the project folder.
-
Install the project dependencies using
pnpm install
ornpm install
. -
Start the dev server using the
pnpm dev
ornpm run dev
. -
Open a browser and go to http://localhost:5173.
- To build a project for production, use
pnpm build
ornpm build
. - To run tests in CI mode, use
pnpm test:ci
ornpm test:ci
.