Skip to content

Full stack social media site using Next.JS, ClerkJS for authentication, and Prisma ORM for database interactions. Users can post, view others posts, follow others, comment on others posts, and like posts.

Notifications You must be signed in to change notification settings

astev423/GratisSocial

Repository files navigation

WELCOME TO GratisSocial

Open social media platform, we don't sell your data, in fact we can't, since there are no ads! Just a nice, simple, intuitive platform anyone can use. Built using NextJS, typescript, Prisma ORM, and Clerk. Formatting and linting done with Biome

HOW TO SET UP GRATIS

1. You will need to clone the repo, then run

pnpm install

2. Then, make a database and run it in the background (my DB is psql on linux)

3. Then connect your DB to Prisma (follow the prisma website tutorial or read steps below (my steps might not work))

For connecting it to psql I simply made a .env file with my database information

DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"

and then ran the commands:

npx prisma migrate dev --name init
npx prisma generate

3. You will also need to set up Clerk (follow their website tutorial or steps below)

Make a clerk account and get your API keys and then put them in a .env.local file like so

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_public_key_here
CLERK_SECRET_KEY=your_private_key_here

About

Full stack social media site using Next.JS, ClerkJS for authentication, and Prisma ORM for database interactions. Users can post, view others posts, follow others, comment on others posts, and like posts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages