Skip to content

Repository files navigation

GRWND

image image image image

image image

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.

Features

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

Setup

This projects requires that you have NodeJS, a GitHub OAUTH App setup, and a Supabase project.

Setting Up Supabase

In the project's SQL console, run the contents of the schema dump file to set up the project's layout.

Environment Variables

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.

Running The Code

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)

About

A place for developers to post problems worth solving and projects worth knowing about.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages