Skip to content

Social platform where users connect, chat, and exchange skills, with file sharing.

Notifications You must be signed in to change notification settings

WhyAsh5114/skill-swap

Repository files navigation

Skill Swap

Skill Swap is a social media platform designed to enable users to share and exchange skills seamlessly. With real-time chat, file-sharing capabilities, and a connection-based linking system, users can create meaningful interactions and collaborations.

Features

Core Features

  • Skill Sharing: Showcase your expertise and discover others' skills.
  • Real-Time Chat: Instant messaging with users.
  • File Sharing: Easily share resources and files during conversations.
  • Connections System: Establish connections with like-minded users to build your network.

Built With

  • Next.js: Modern React framework for server-side rendering and static site generation.
  • Prisma: ORM for interacting with the database.
  • PostgreSQL: Reliable and scalable relational database.
  • Neon: Serverless PostgreSQL hosting platform.
  • Shadcn/ui: Component library for consistent and beautiful UI.
  • Tailwind CSS: Utility-first CSS framework for styling.

Installation

Prerequisites

Ensure you have the following installed:

  • Node.js (v16 or later)
  • npm or yarn
  • PostgreSQL (local or hosted, compatible with Neon)

Steps

  1. Clone the repository:

    git clone https://github.com/your-username/skill-swap.git
    cd skill-swap
  2. Install dependencies:

    npm install
    # or
    yarn install
  3. Configure environment variables: Create a .env file in the root directory and add the following:

    DATABASE_URL=postgresql://username:password@host:port/database
    NEXTAUTH_SECRET=your-secret
    NEXTAUTH_URL=http://localhost:3000
  4. Set up the database:

    npx prisma migrate dev --name init
    npx prisma generate
  5. Start the development server:

    npm run dev
    # or
    yarn dev

Access the application at http://localhost:3000.

Usage

  • Sign up or log in to the platform.
  • Update your profile with your skills and interests.
  • Browse or search for users based on skills.
  • Initiate a chat to exchange knowledge or resources.
  • Establish a connection for future collaboration.

Deployment

Deploying to Vercel

  1. Connect the repository to your Vercel account.
  2. Add the environment variables from your .env file to the Vercel dashboard.
  3. Deploy your application with one click.

Database Hosting

For serverless database hosting, use Neon and connect it via the DATABASE_URL in the .env file.

Contributing

We welcome contributions to enhance Skill Swap. To get started:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature/your-feature-name
  3. Commit your changes:
    git commit -m "Add your message here"
  4. Push the branch:
    git push origin feature/your-feature-name
  5. Open a pull request.

License

Skill Swap is licensed under the MIT License.

Acknowledgments

  • The open-source community for providing tools and libraries.
  • Contributors who helped build and maintain the project.

Enjoy sharing and learning new skills with Skill Swap!

About

Social platform where users connect, chat, and exchange skills, with file sharing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published