Skip to content

SorSUcial is a social media platform where users can create posts, comments, like posts and comments, discussions, replies, vote on discussions and replies, groups, and more.

License

Notifications You must be signed in to change notification settings

godkingjay/sorsucial

Repository files navigation

SorSUcial

A social networking platform for Sorsogon State University's students, staff, and professors. Users of the platform can:

  1. Create Posts. Which may include:

    a. Photos

    b. Videos

    c. Files

    d. Links

    e. Tags

  2. Create Discussions. This may include:

    a. Tags

  3. Create Groups. This may be:

    a. Public - A public group is a group where members or non-members can create posts, discussions, comments, replies, like posts and comments, and vote on discussions and replies.

    b. Restricted - A restricted group is a group where only members can create content but non-members can like or vote in posts, comments, discussions, and replies.

    c. Private - A private group is a group where only members can view and interact with its contents.

  4. Manage Profile. Manage user:

    a. Information

    b. Authentication

  5. Create Comments in posts and comments.

  6. Create Replies in discussions and replies.

Setup

  1. Install the dependencies:
npm install
#or
yarn install
  1. Configure the environment variables in .env.example and rename it to .env.local:
NEXT_PUBLIC_API_KEY=#Firebase APP API Key
NEXT_PUBLIC_AUTH_DOMAIN=#Firebase App Auth Domain
NEXT_PUBLIC_DATABASE_URL=#Firebase App Database
NEXT_PUBLIC_PROJECT_ID=#Firebase App Project ID
NEXT_PUBLIC_STORAGE_BUCKET=#Firebase App Storage Bucket
NEXT_PUBLIC_MESSAGING_SENDER_ID=#Firebase App Sender ID
NEXT_PUBLIC_APP_ID=#Firebase APP ID
NEXT_PUBLIC_MEASUREMENT_ID=#Firebase APP Measurement ID

NEXT_PUBLIC_BASE_URL=#The Website base URL
NEXT_PUBLIC_API_ENDPOINT=#The API Endpoint base URL

NEXT_PUBLIC_ADMIN_TYPE=service_account
NEXT_PUBLIC_ADMIN_PRIVATE_KEY_ID=#Firebase Admin SDK Private Key
NEXT_PUBLIC_ADMIN_CLIENT_EMAIL=#Firebase Admin SDK Client Email
NEXT_PUBLIC_ADMIN_CLIENT_ID=#Firebase Admin SDK Client ID
NEXT_PUBLIC_ADMIN_AUTH_URI=#Firebase Admin SDK Auth URI
NEXT_PUBLIC_ADMIN_TOKEN_URI=#Firebase Admin SDK Token URI
NEXT_PUBLIC_ADMIN_CERT_AUTH_PROVIDER=#Firebase Admin SDK Certificate Provider
NEXT_PUBLIC_ADMIN_CERT_CLIENT=#Firebase Admin SDK Client Certificate

MONGODB_URI=#MongoDB Database Link
  1. Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
  1. Open http://localhost:3000 with your browser to see the result.

API routes can be accessed on http://localhost:3000/api/. This endpoint can be edited in pages/api/index.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

SorSUcial is a social media platform where users can create posts, comments, like posts and comments, discussions, replies, vote on discussions and replies, groups, and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published