No description
https://timehex.net
- Vue 53.8%
- TypeScript 46%
- Dockerfile 0.2%
| .claude | ||
| app | ||
| public | ||
| server | ||
| shared | ||
| .gitignore | ||
| .npmrc | ||
| .prettierrc | ||
| CLAUDE.md | ||
| Dockerfile | ||
| drizzle.config.ts | ||
| eslint.config.mjs | ||
| nuxt.config.ts | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tailwind.config.ts | ||
| tsconfig.json | ||
Nuxt Minimal Starter
Look at the Nuxt documentation to learn more.
Setup
Make sure to install dependencies:
# pnpm
pnpm install
Development Server
Start the development server on http://localhost:3000:
# pnpm
pnpm dev
Start the development server with ssl on https://localhost:3000 (so cookies will work on Safari):
# pnpm
pnpm ssl-dev
Production
Build the application for production:
# pnpm
pnpm build
Locally preview production build:
# pnpm
pnpm preview
Check out the deployment documentation for more information.
Setting up local SSL
Follow the MKCert guide for localhost here: https://www.storyblok.com/faq/setting-up-https-on-localhost-in-nuxt-3
Update local DB
npx drizzle-kit push;
We will eventually use migrations, TODO: Update this documentation once we do.
Run prettier on all files
pnpm prettier . --write
How to access the remote database
ssh onto the server then:
- Add your ip to the ufw whitelist
sudo ufw allow from <your-local-ip> to any port 5432
- Add your ip to the pg_hba.conf file
sudo nano /etc/postgresql/16/main/pg_hba.conf
Run a one-off database migration
npx tsx db/migrate.ts