Skip to content

Repository files navigation

Personal Website

Next.js 路 TypeScript 路 Tailwind 路 Bun 路 Docker

Setup

git clone https://github.com/Rishon/personal-website
cd personal-website
bun install

Environment

Create .env:

# Server
PORT=3000
NEXT_PUBLIC_SITE_URL=

# Turnstile
NEXT_PUBLIC_TURNSTILE_SITE_KEY=
TURNSTILE_SECRET_KEY=

# Discord presence
NEXT_PUBLIC_DISCORD_ID=

# Spotify
NEXT_PUBLIC_SPOTIFY_CLIENT_ID=
NEXT_PUBLIC_SPOTIFY_OAUTH=
SPOTIFY_CLIENT_SECRET=

# SMTP
MAIL_HOST=
MAIL_PORT=465
MAIL_SECURE=true
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_TO=

# Analytics
NEXT_PUBLIC_GA_ID=
NEXT_PUBLIC_CLARITY_ID=

# Quantum app push
QUANTUM_API_SECRET=

Scripts

bun run dev      # development
bun run build    # production build
bun run start    # serve build
bun run lint     # eslint

Spotify

Register http://127.0.0.1:3000/auth/spotify-callback, visit /auth/spotify-navigate, then set NEXT_PUBLIC_SPOTIFY_OAUTH=false.

Quantum API

Routes pushed to by the Quantum phone app, bearer QUANTUM_API_SECRET.

Route POST GET Store Stale
/api/speed {kmh} or {stopped:true} {driving, kmh} speed-data.json 2 m
/api/location {city} {city} location-data.json 6 h

About

馃寪 Next.js and Tailwind CSS website in TypeScript

Resources

Stars

0 stars

Watchers

1 watching

Forks

Sponsor this project

Used by

Contributors

Languages