Skip to content

Commit 06abe18

Browse files
committed
Merge branch 'supa-vacation-nextjs'
2 parents 8b07928 + 4180692 commit 06abe18

33 files changed

+4384
-19
lines changed

.gitpod.yml

Lines changed: 77 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,79 @@
11
image:
2-
file: .gitpod.Dockerfile
2+
file: .gitpod.Dockerfile
33
tasks:
4-
- name: tailscaled
5-
command: |
6-
if [ -n "${TS_STATE_TAILSCALE_EXAMPLE}" ]; then
7-
# restore the tailscale state from gitpod user's env vars
8-
sudo mkdir -p /var/lib/tailscale
9-
echo "${TS_STATE_TAILSCALE_EXAMPLE}" | sudo tee /var/lib/tailscale/tailscaled.state > /dev/null
10-
fi
11-
sudo tailscaled
12-
- name: tailscale
13-
command: |
14-
sudo -E tailscale up --hostname "gitpod@nooobcoder-${GITPOD_WORKSPACE_ID}" \
15-
--authkey "${TAILSCALE_AUTHKEY}"
16-
- name: Import GPG
17-
init: >
18-
[[ ! -z $GNUPG_KEY ]] &&
19-
gpg --verbose --batch --import <(echo $GNUPG_KEY|base64 -d) &&
20-
echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf &&
21-
git config commit.gpgsign true
4+
- name: tailscaled
5+
command: |
6+
if [ -n "${TS_STATE_TAILSCALE_EXAMPLE}" ]; then
7+
# restore the tailscale state from gitpod user's env vars
8+
sudo mkdir -p /var/lib/tailscale
9+
echo "${TS_STATE_TAILSCALE_EXAMPLE}" | sudo tee /var/lib/tailscale/tailscaled.state > /dev/null
10+
fi
11+
sudo tailscaled
12+
- name: tailscale
13+
command: |
14+
sudo -E tailscale up --hostname "gitpod@nooobcoder-${GITPOD_WORKSPACE_ID}" \
15+
--authkey "${TAILSCALE_AUTHKEY}"
16+
- name: Import GPG
17+
init: >
18+
[[ ! -z $GNUPG_KEY ]] &&
19+
gpg --verbose --batch --import <(echo $GNUPG_KEY|base64 -d) &&
20+
echo 'pinentry-mode loopback' >> ~/.gnupg/gpg.conf &&
21+
git config commit.gpgsign true
22+
vscode:
23+
extensions:
24+
- aaron-bond.better-comments
25+
- ahmadawais.shades-of-purple
26+
- avraammavridis.vsc-react-documentation
27+
- bierner.color-info
28+
- bradlc.vscode-tailwindcss
29+
- bungcip.better-toml
30+
- christian-kohler.npm-intellisense
31+
- christian-kohler.path-intellisense
32+
- CodeSandbox-io.codesandbox-projects-theme
33+
- cweijan.vscode-mysql-client2
34+
- DaltonMenezes.aura-theme
35+
- dbaeumer.vscode-eslint
36+
- DominicVonk.parameter-hints
37+
- dsznajder.es7-react-js-snippets
38+
- eamodio.gitlens
39+
- EditorConfig.EditorConfig
40+
- esbenp.prettier-vscode
41+
- GitHub.copilot
42+
- GitHub.github-vscode-theme
43+
- GitHub.vscode-pull-request-github
44+
- golang.go
45+
- Gruntfuggly.todo-tree
46+
- jsDelivr.jsdelivr
47+
- k--kato.intellij-idea-keybindings
48+
- manuth.eslint-language-service
49+
- markwylde.vscode-filesize
50+
- mechatroner.rainbow-csv
51+
- mikestead.dotenv
52+
- mongodb.mongodb-vscode
53+
- monokai.theme-monokai-pro-vscode
54+
- ms-python.python
55+
- ms-vscode.cpptools
56+
- ms-vsliveshare.vsliveshare-pack
57+
- naumovs.color-highlight
58+
- ngryman.codesandbox-theme
59+
- njzy.stats-bar
60+
- oderwat.indent-rainbow
61+
- pflannery.vscode-versionlens
62+
- PKief.material-icon-theme
63+
- Prisma.prisma-insider
64+
- rangav.vscode-thunder-client
65+
- redhat.java
66+
- redwan-hossain.auto-rename-tag-clone
67+
- sdras.night-owl
68+
- steoates.autoimport
69+
- tombonnike.vscode-status-bar-format-toggle
70+
- usernamehw.errorlens
71+
- vlanguage.vscode-vlang
72+
- vscjava.vscode-java-debug
73+
- vscjava.vscode-java-dependency
74+
- vscjava.vscode-java-pack
75+
- vscjava.vscode-java-test
76+
- vscjava.vscode-maven
77+
- vscjava.vscode-spring-initializr
78+
- wix.vscode-import-cost
79+
- zaaack.markdown-editor

supa-vacation-nextjs/.env.example

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
DATABASE_URL=
2+
NEXTAUTH_URL=
3+
NEXTAUTH_SECRET=
4+
EMAIL_SERVER_HOST=
5+
EMAIL_SERVER_PORT=
6+
EMAIL_SERVER_USER=
7+
EMAIL_SERVER_PASSWORD=
8+
EMAIL_FROM=
9+
GOOGLE_ID=
10+
GOOGLE_SECRET=
11+
SUPABASE_URL=
12+
SUPABASE_KEY=
13+
SUPABASE_BUCKET=

supa-vacation-nextjs/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

supa-vacation-nextjs/.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env
29+
.env.local
30+
.env.development.local
31+
.env.test.local
32+
.env.production.local
33+
34+
# vercel
35+
.vercel

supa-vacation-nextjs/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 AlterClass
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

supa-vacation-nextjs/README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Build a FullStack App with Next.js, Supabase & Prisma | The Modern Dev by
2+
[AlterClass.io](https://alterclass.io).
3+
4+
- Learn to build this application step-by-step by following the FREE course on
5+
[The Modern Dev](https://themodern.dev/).
6+
7+
- Preview the app live [here](https://supa-vacation.vercel.app/).
8+
9+
- Deploy the same app using Vercel:
10+
11+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/AlterClassIO/supa-vacation&project-name=SupaVacation+by+The+Modern+Dev&repository-name=SupaVacation+by+The+Modern+Dev)
12+
13+
[![SupaVacation](https://user-images.githubusercontent.com/4352286/152961498-0e7d1575-a2a2-4aae-93e0-a75e701cef06.png)](https://supa-vacation.vercel.app/)
14+
15+
## Getting Started
16+
17+
### 1. Clone the repository and install dependencies
18+
19+
```
20+
git clone https://github.com/AlterClassIO/supa-vacation
21+
cd supa-vacation
22+
npm install
23+
```
24+
25+
### 2. Configure your local environment
26+
27+
Rename the `.env.example` file in this directory to `.env` (which
28+
will be ignored by Git):
29+
30+
```
31+
cp .env.local.example .env.local
32+
```
33+
34+
Add your own values for all the environment variables.
35+
36+
### 3. Start the application
37+
38+
To run your site locally, use:
39+
40+
```
41+
npm run dev
42+
```
43+
44+
To run it in production mode, use:
45+
46+
```
47+
npm run build
48+
npm run start
49+
```
50+
51+
## License
52+
53+
[MIT](https://github.com/AlterClassIO/supa-vacation/blob/master/LICENSE)

0 commit comments

Comments
 (0)