Skip to content

Commit 06f8def

Browse files
committed
docs: add personal finance nuxt app
1 parent 5d3a9ba commit 06f8def

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+17464
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
- 'examples-standalone/dashboard/**'
3232
coffee-warehouse:
3333
- 'examples-standalone/coffee-warehouse/**'
34+
vue-personal-finance-nuxt:
35+
- 'examples-standalone/vue-personal-finance-nuxt/**'
3436
3537
- name: Build Dashboard app
3638
working-directory: ./examples-standalone/dashboard
@@ -46,6 +48,14 @@ jobs:
4648
npm ci
4749
npm run build
4850
51+
- name: Build Vue Personal Finance Nuxt app
52+
working-directory: ./examples-standalone/vue-personal-finance-nuxt
53+
if: steps.changes.outputs.vue-personal-finance-nuxt == 'true'
54+
run: |
55+
npm ci
56+
npm run build
57+
npm run generate
58+
4959
- name: Cleanup
5060
run: git clean -xdf
5161

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Nuxt dev/build outputs
2+
.output
3+
.data
4+
.nuxt
5+
.nitro
6+
.cache
7+
dist
8+
9+
# Node dependencies
10+
node_modules
11+
12+
# Logs
13+
logs
14+
*.log
15+
16+
# Misc
17+
.DS_Store
18+
.fleet
19+
.idea
20+
21+
# Local env files
22+
.env
23+
.env.*
24+
!.env.example
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Nuxt Minimal Starter
2+
3+
Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
4+
5+
## Setup
6+
7+
Make sure to install dependencies:
8+
9+
```bash
10+
# npm
11+
npm install
12+
13+
# pnpm
14+
pnpm install
15+
16+
# yarn
17+
yarn install
18+
19+
# bun
20+
bun install
21+
```
22+
23+
## Development Server
24+
25+
Start the development server on `http://localhost:3000`:
26+
27+
```bash
28+
# npm
29+
npm run dev
30+
31+
# pnpm
32+
pnpm dev
33+
34+
# yarn
35+
yarn dev
36+
37+
# bun
38+
bun run dev
39+
```
40+
41+
## Production
42+
43+
Build the application for production:
44+
45+
```bash
46+
# npm
47+
npm run build
48+
49+
# pnpm
50+
pnpm build
51+
52+
# yarn
53+
yarn build
54+
55+
# bun
56+
bun run build
57+
```
58+
59+
Locally preview production build:
60+
61+
```bash
62+
# npm
63+
npm run preview
64+
65+
# pnpm
66+
pnpm preview
67+
68+
# yarn
69+
yarn preview
70+
71+
# bun
72+
bun run preview
73+
```
74+
75+
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<template>
2+
<Navigation :go-to-route="goToRoute">
3+
<Header @navigate="onNavigate" @currency-change="onCurrencyChange"/>
4+
<NuxtPage />
5+
</Navigation>
6+
<Footer />
7+
</template>
8+
9+
<script setup>
10+
import { ref, provide } from 'vue';
11+
import { createRouter, createWebHistory } from 'vue-router';
12+
import Navigation from '@/components/Navigation.vue';
13+
import Header from '@/components/Header.vue';
14+
import Footer from '@/components/Footer.vue';
15+
16+
const goToRoute = ref(null);
17+
const currency = ref('USD');
18+
19+
provide('currency', currency);
20+
21+
const onNavigate = (props) => {
22+
goToRoute.value = props;
23+
};
24+
25+
const onCurrencyChange = (newCurrency) => {
26+
currency.value = newCurrency;
27+
};
28+
29+
</script>

0 commit comments

Comments
 (0)