diff --git a/README.md b/README.md
index add04a1..96aa5b0 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,33 @@
-# vite-vue2-example
+# Vite ⚡ - Vue 2 starter template
-Example project for a Vue 2 SPA using Vite and composition API
+This starter template will help you to easily create a Vue2 application bundled by the lightning fast build tool called [Vite](https://github.com/vitejs/vite). Besides Vite this template also provides:
-## Vite plugins
-* [`vite-plugin-vue2`](https://github.com/underfin/vite-plugin-vue2)
-* [`vite-plugin-components`](https://github.com/antfu/vite-plugin-components)
-* [` vite-plugin-windicss`](https://github.com/windicss/vite-plugin-windicss)
\ No newline at end of file
+* Typescript support
+* Vue Router
+* Vue Composition-API
+* WindiCSS (TailwindCSS) + Dark Mode
+
+## :package: Vite plugins
+
+* [`vite-plugin-vue2`](https://github.com/underfin/vite-plugin-vue2) -
+ Vue 2 support for Vite
+* [`vite-plugin-components`](https://github.com/antfu/vite-plugin-components) -
+ On demand components auto importing for Vite
+* [`vite-plugin-windicss`](https://github.com/windicss/vite-plugin-windicss) -
+ WindiCSS/TailwindCSS for Vite
+
+## :rocket: Getting started
+
+1. Install dependencies
+ ```bash
+ npm install
+ ```
+2. Start dev server
+ ```bash
+ npm run dev
+ ```
+3. Visit the page
+ http://localhost:8080
+
+
\ No newline at end of file
diff --git a/index.html b/index.html
index d1fa6ad..27f3704 100644
--- a/index.html
+++ b/index.html
@@ -7,7 +7,7 @@
-
diff --git a/src/main.ts b/src/main.ts
index 9b91b63..c3cc230 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -3,11 +3,13 @@ import App from "@/App.vue";
import { createApp, h } from "vue-demi";
import "windi.css";
+import router from "@/router";
Vue.config.productionTip = false;
Vue.config.devtools = true;
const app = createApp({
+ router,
render: () => h(App),
});
diff --git a/src/router/index.ts b/src/router/index.ts
new file mode 100644
index 0000000..b509e92
--- /dev/null
+++ b/src/router/index.ts
@@ -0,0 +1,37 @@
+import Vue from "vue";
+import VueRouter, { RouteConfig } from "vue-router";
+import Home from "@/views/Home.vue";
+import About from "@/views/About.vue";
+import NotFound from "@/views/NotFound.vue";
+
+Vue.use(VueRouter);
+
+export const routes: RouteConfig[] = [
+ {
+ path: "/",
+ name: "Home",
+ component: Home,
+ },
+ {
+ path: "/about",
+ name: "About",
+ // NOTE: you can also apply meta information
+ // meta: {authRequired: false }
+ component: About,
+ // NOTE: you can also lazy-load the component
+ // component: () => import("@/views/About.vue")
+ },
+ {
+ path: "/:path(.*)",
+ name: "NotFound",
+ component: NotFound,
+ },
+];
+
+const router = new VueRouter({
+ base: "/",
+ mode: "history",
+ routes,
+});
+
+export default router;
diff --git a/src/views/About.vue b/src/views/About.vue
new file mode 100644
index 0000000..d5c4424
--- /dev/null
+++ b/src/views/About.vue
@@ -0,0 +1,29 @@
+
+
+
+
+ About: Vite ⚡ - Vue 2 starter template
+
+ This starter template will help you to easily create a Vue2
+ application bundled by the lightning fast build tool called Vite.
+ Besides Vite this template also provides typescript support,
+ TailwindCSS, vue-router and the vue composition-api for Vue2.
+