This is a mock social media site built by Jerren Trifan and Dolan Reynolds. It is similar in nature to a twitter style feed, with comments / likes / media features.
A working demo is accessible at social.trifall.com
- Next.js 13 (Pages Router)
- React 18
- TailwindCSS
- HeadlessUI
- Turso (SQLite) Database
- Drizzle (ORM)
- Next-Auth
- UploadThing
- Zod
- React-Hook-Form
-
Install Yarn
-
Install dependencies:
yarn install
-
Make a copy of
.env.exampleand rename it to.env.local -
Fill in the environment variables in
.env.localwith your own values
First, run the development server:
yarn devOpen http://localhost:3000 with your browser to see the result.
(Database) Drizzle studio:
yarn studioOpen http://localhost:3333 with your browser to see the database studio.
Drizzle database migrations:
yarn generatethen
yarn migrateCompile a production build:
yarn build
The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.