Skip to content

lihasahil/social-book

Repository files navigation

SocialBook

SocialBook is a modern social networking platform where users can share content online with friends, follow other users, and engage with posts through likes and comments.
Built with Next.js, ShadCN UI, PostgreSQL, and Clerk for authentication.
Live Link


Features

  • User Authentication & Authorization — Secure sign-up, login, and session management using Clerk.
  • Post Creation & Sharing — Share text, images, or videos with your network.
  • Follow System — Follow and unfollow other users to curate your feed.
  • Likes & Comments — Interact with posts through likes and threaded comments.
  • Responsive UI — Styled with ShadCN UI for a clean, modern design.
  • Real-time Updates — Instant feedback on likes and comments (if implemented with WebSockets/SWR).
  • PostgreSQL Database — Robust and scalable data storage.

Tech Stack


Project Structure

socialbook/
├── app/               # Next.js App Router pages & layouts
├── components/        # Reusable UI components
├── lib/               # Utility functions & database config
├── prisma/            # Prisma schema & migrations
├── public/            # Static assets
├── styles/            # Global styles
└── README.md

Getting Started

1️⃣ Clone the repository

git clone https://github.com/yourusername/socialbook.git
cd socialbook

2️⃣ Install dependencies

npm install
# or
yarn install

3️⃣ Setup environment variables

Create a .env file in the root of your project and add:

DATABASE_URL="postgresql://USER:PASSWORD@HOST:PORT/DATABASE"
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key

4️⃣ Setup the database

npx prisma migrate dev

5️⃣ Run the development server

npm run dev

Your app will be available at http://localhost:3000


Screenshots

social-book-psi vercel app_ (2) social-book-psi vercel app_ (1) social-book-psi vercel app_ (3)

License

This project is licensed under the MIT License — you’re free to use, modify, and distribute it.


Future Enhancements

  • Real-time chat feature
  • Notifications for likes, comments, and follows
  • Media uploads (images/videos)
  • Explore page for discovering new content

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.


Acknowledgements

About

SocialBook is a modern social networking platform where users can share content online with friends, follow other users, and engage with posts through likes and comments. Built with Next.js, ShadCN UI, PostgreSQL, and Clerk for authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors