Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantErickson committed Oct 19, 2023
0 parents commit ae8c33f
Show file tree
Hide file tree
Showing 9 changed files with 10,968 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log

# Misc
.DS_Store
.fleet
.idea

# Local env files
.env
.env.*
!.env.example
75 changes: 75 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Nuxt 3 Minimal Starter

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install
```

## Development Server

Start the development server on `http://localhost:3000`:

```bash
# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev
```

## Production

Build the application for production:

```bash
# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build
```

Locally preview production build:

```bash
# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
39 changes: 39 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<template>
<div class="d-flex align-center flex-column">
<v-card width="600" elevation="6" style="margin-top: 20px">
<v-img
class="align-end text-white"
height="200"
src="https://cdn.vuetifyjs.com/images/cards/docks.jpg"
cover
>
<v-card-title>Joke of the Day</v-card-title>
</v-img>
<v-card-text>
<p class="text-h6">{{ joke.question }}</p>
<p>{{ joke.answer }}</p>
<v-chip class="ma-2" color="primary" label>
<v-icon start icon="mdi-account-circle-outline"></v-icon>
{{ joke.author }}
</v-chip>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue" variant="flat" elevation="4" @click="getJoke"
>New Joke</v-btn
>
</v-card-actions>
</v-card>
</div>
</template>

<script setup lang="ts">
let joke = ref({ question: "", answer: "", author: "" });
function getJoke() {
$fetch("https://simplejokeapi.azurewebsites.net/joke").then((data: any) => {
joke.value = data;
});
}
getJoke();
</script>
21 changes: 21 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
// from: https://github.com/GrantErickson/StaticSpa396/blob/master/nuxt.config.ts
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@invictus.codes/nuxt-vuetify"],
vuetify: {
/* vuetify options */
vuetifyOptions: {
// @TODO: list all vuetify options
},
moduleOptions: {
/* nuxt-vuetify module options */
treeshaking: true,
useIconCDN: true,
/* vite-plugin-vuetify options */
styles: true,
autoImport: true,
useVuetifyLabs: false,
},
},
});
Loading

0 comments on commit ae8c33f

Please sign in to comment.