kamwing / socialcue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SocialCue

Welcome to SocialCue! 👋

This is the demo app used in How To Prisma. It's built with Next.js, TypeScript, Tailwind, and a bunch of other great libraries.

It's a social media scheduling app that does just about everything except actually publishing the posts 😄

app screenshot

Installation and Running the App

Clone the repo and install dependencies.

# npm
npm install

# yarn
yarn

Sync Prisma Schema into dev.db

This project uses SQLite, a small and fast database engine that is great for local development and testing.

The project doesn't come with the SQLite database file included. Instead, the file gets created on the fly by Prisma.

The database file is called dev.db and it's found in the prisma directory.

Use Prisma's db push command to generate the database file and sync the schema found in prisma/schema.prisma.

# npm
npx prisma db push

# yarn
yarn prisma db push

Seed the Database

The project comes with a file to seed the database with some initial data. It's found in prisma/seed.ts.

Use Prisma's db seed command to get some initial data in place.

# npm
npx prisma db seed

# yarn
yarn prisma db seed

Run the App

Use Next.js's devleopment server to start the app.

# npm
npm run dev

# yarn
yarn run dev

License

MIT

About


Languages

Language:TypeScript 81.2%Language:CSS 17.4%Language:JavaScript 0.9%Language:Shell 0.6%