Note
View the live demo here.
Grwnd is a platform targetted towards developers and tech enthusiates. Users are able to post about projects worth knowing about.
Note
This project is more of a demo of the capabilities of databases, and lacks certain features like voting and commenting on other posts.
- ➕ Create posts
- 🖍️ Edit posts
- 🗑️ Delete posts
This projects requires that you have NodeJS, a GitHub OAUTH App setup, and a Supabase project.
In the project's SQL console, run the contents of the schema dump file to set up the project's layout.
Located inside of .env.example are the variables that should be filled. Of these variables, the following are mandatory:
GITHUB_OAUTH_ID=
GITHUB_OAUTH_SECRET=
SUPABASE_URL=
SUPABASE_KEY=
BETTER_AUTH_SECRET= (random string)
BETTER_AUTH_URL=
DATABASE_CONNECTION_URL=#The Postgres connection URL to your database
The variables not included are either just for logging (the Discord webhooks) or extra control.
This is a NextJS project, and can be automatically deployed onto the web with minial setup using Vercel. Here are the commands:
| Command | Description |
|---|---|
npm install |
Install the dependencies (MUST) |
npm run dev |
Run code |
npm run build |
Build a production level version of the project (can be used to test) |
auth:migrate |
Generate minimum SQL schema for BetterAUTH (already done using the schema file) |