Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nermalcat69/t3-zerops
:herb: T3 stack with Prisma and Postgres on Zerops
https://github.com/nermalcat69/t3-zerops
nextjs postgres postgresql postgresql-database prisma t3 t3-app t3-stack zerops
Last synced: 18 days ago
JSON representation
:herb: T3 stack with Prisma and Postgres on Zerops
- Host: GitHub
- URL: https://github.com/nermalcat69/t3-zerops
- Owner: nermalcat69
- License: mit
- Created: 2024-05-22T17:48:33.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-26T04:49:48.000Z (7 months ago)
- Last Synced: 2024-12-04T17:30:55.666Z (18 days ago)
- Topics: nextjs, postgres, postgresql, postgresql-database, prisma, t3, t3-app, t3-stack, zerops
- Language: TypeScript
- Homepage: https://t3.zerops.xyz
- Size: 80.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# T3 on Zerops
This is a template to deploy a T3 stack project with next auth + prisma + postgres on [zerops](https://zerops.io).
### Tech Stack Used
- [Next.js](https://nextjs.org)
- [NextAuth.js](https://next-auth.js.org)
- [Prisma](https://prisma.io)
- [Drizzle](https://orm.drizzle.team)
- [Tailwind CSS](https://tailwindcss.com)
- [tRPC](https://trpc.io)### Importing this project - Fastest Way
Go to Zerops Dashboard, Import Project using the import yaml mentioned below
```yaml
project:
name: zerops-t3services:
- hostname: t3stack
type: nodejs@20
buildFromGit: https://github.com/nermalcat69/t3-zerops
ports:
- port: 3000
httpSupport: true
enableSubdomainAccess: true
minContainers: 1
envSecrets:
# Automatically connects to the pg with the hostname "db" in the project
DATABASE_URL: postgresql://${user}:${password}@db:5432
# Replace with your url later in your nodejs service's
# environment variables section
# eg: yourproject.zerops.app, testproject.com, test.example.com
NEXTAUTH_URL: http://t3.zerops.xyz
# You can generate your secret using `openssl rand -base64 32` in your terminal
NEXTAUTH_SECRET: gw7RPnvDKc4lohNT/8LdMe1bKBuURAW4gPme7eOYvYs
# Grab your client secret and id from https://discord.com/developers/applications
DISCORD_CLIENT_ID: discord-client-id
DISCORD_CLIENT_SECRET: discord-client-secret
- hostname: db
type: postgresql@16
mode: NON_HA
priority: 1
```## Facing issues while Deploying
Make sure you've added
- [ ] Environment Variables mentioned in [.env.example](https://github.com/Nermalcat69/T3-Zerops/blob/main/.env.example).
For more info you can use [Zerops Docs](https://docs.zerops.io/) or reach out for help at their [Discord Server](https://discord.gg/RzaeZZJVEj).