+ Current route path: {{ $route.fullPath }} +
+ +
+ Edit
+ components/HelloWorld.vue
to test HMR
+
+ Check out + create-vue, the official Vue + Vite starter +
++ Install + Volar + in your IDE for a better DX +
+Click on the Vite and Vue logos to learn more
+ + + \ No newline at end of file diff --git a/apps/frontend/src/main.js b/apps/frontend/src/main.js deleted file mode 100644 index e69de29..0000000 diff --git a/apps/frontend/src/main.ts b/apps/frontend/src/main.ts new file mode 100644 index 0000000..f32225b --- /dev/null +++ b/apps/frontend/src/main.ts @@ -0,0 +1,8 @@ +import { createApp } from 'vue' +import './style.css' +import App from './App.vue' +import { router } from './router.ts'; + +createApp(App) + .use(router) + .mount('#app') \ No newline at end of file diff --git a/apps/frontend/src/router.ts b/apps/frontend/src/router.ts new file mode 100644 index 0000000..b06babd --- /dev/null +++ b/apps/frontend/src/router.ts @@ -0,0 +1,14 @@ +import { createWebHistory, createRouter } from 'vue-router' + +import HomeView from './routes/HomeView.vue' +import AboutView from './routes/AboutView.vue' + +const routes = [ + { path: '/', component: HomeView }, + { path: '/about', component: AboutView }, +] + +export const router = createRouter({ + history: createWebHistory(), + routes, +}) \ No newline at end of file diff --git a/apps/frontend/src/routes/AboutView.vue b/apps/frontend/src/routes/AboutView.vue new file mode 100644 index 0000000..3af429b --- /dev/null +++ b/apps/frontend/src/routes/AboutView.vue @@ -0,0 +1,6 @@ + + + +