Skip to content

Commit fda55bc

Browse files
AndyAndy
Andy
authored and
Andy
committed
start
1 parent 13f1236 commit fda55bc

File tree

11 files changed

+600
-67
lines changed

11 files changed

+600
-67
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
db.sqlite
2+
13
# Nuxt dev/build outputs
24
.output
35
.data

README.md

Lines changed: 4 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,15 @@
1-
# Nuxt 3 Minimal Starter
1+
# The Nuxt Authentication Course Sample Project
22

3-
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
3+
This repo is for education purposes only, not for production. (many things are missing for production use)
44

5-
## Setup
6-
7-
Make sure to install the dependencies:
5+
Install the dependencies:
86

97
```bash
10-
# npm
118
npm install
12-
13-
# pnpm
14-
pnpm install
15-
16-
# yarn
17-
yarn install
18-
19-
# bun
20-
bun install
219
```
2210

23-
## Development Server
24-
25-
Start the development server on `http://localhost:3000`:
11+
Run the dev server:
2612

2713
```bash
28-
# npm
2914
npm run dev
30-
31-
# pnpm
32-
pnpm run 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 run 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 run preview
67-
68-
# yarn
69-
yarn preview
70-
71-
# bun
72-
bun run preview
7315
```
74-
75-
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

app.vue

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
11
<template>
2-
<div>
3-
<NuxtRouteAnnouncer />
4-
<NuxtWelcome />
2+
<div class="page">
3+
<NuxtLayout>
4+
<NuxtPage />
5+
</NuxtLayout>
56
</div>
67
</template>
8+
9+
<style>
10+
body {
11+
font-size: 20pt;
12+
font-family: arial;
13+
text-align: center;
14+
}
15+
16+
h1 {
17+
font-size: 36pt;
18+
}
19+
20+
a, a:visited {
21+
color: lightskyblue;
22+
}
23+
24+
form > div {
25+
margin-bottom: 10px;
26+
}
27+
28+
input {
29+
font-size: 16pt;
30+
}
31+
32+
button {
33+
font-size: 16pt;
34+
cursor: pointer;
35+
}
36+
37+
.page {
38+
border: 2px solid #ccc;
39+
width: 700px;
40+
margin: 10px auto;
41+
padding: 20px;
42+
}
43+
</style>

layouts/default.vue

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<template>
2+
<div>
3+
<div class="nav">
4+
<NuxtLink href="/">Home</NuxtLink>
5+
<NuxtLink href="/dashboard">Dashboard</NuxtLink>
6+
</div>
7+
<slot />
8+
</div>
9+
</template>
10+
11+
<style>
12+
.nav > a {
13+
cursor: pointer;
14+
text-decoration: none;
15+
margin-right: 25px;
16+
}
17+
18+
.nav > a:last-child {
19+
margin-right: 0;
20+
}
21+
22+
.nav > a:hover, .nav > a.router-link-active {
23+
text-decoration: underline;
24+
}
25+
</style>

0 commit comments

Comments
 (0)