A social networking platform for Sorsogon State University's students, staff, and professors. Users of the platform can:
-
Create Posts. Which may include:
a. Photos
b. Videos
c. Files
d. Links
e. Tags
-
Create Discussions. This may include:
a. Tags
-
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.
-
Manage Profile. Manage user:
a. Information
b. Authentication
-
Create Comments in posts and comments.
-
Create Replies in discussions and replies.
- Install the dependencies:
npm install
#or
yarn install
- 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
- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
- 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.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
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.