The viral social media platform.
The Viral Master repository is a comprehensive codebase for a social media platform. This platform allows users to create posts, comment on them, bookmark them, and interact in various other ways. The backend is built using Node.js and Express, while the frontend is developed using React.
- User Authentication: The repository provides routes and models for user registration, login, and profile management.
- Posts & Comments: Users can create posts, comment on them, and vote on both posts and comments.
- Bookmarks: Users can bookmark posts for later viewing.
- Notifications: The platform supports notifications for various user activities.
- Admin Management: There's a dedicated section for managing users.
-
Server Side:
- index.js - Main server entry point.
- auth.js - Routes for authentication.
- bookmarks.js - Routes for bookmarks.
- comments.js - Routes for comments.
- post.js - Routes for posts.
- users.js - Routes for user management.
- ... (and more server-side models and routes)
-
Client Side:
-
App.js - Main React component.
-
NavBar.jsx - Navigation bar component.
-
Post.jsx - Component for displaying a post.
-
Comment.jsx - Component for displaying a comment.
-
LoginForm.jsx - Login form component.
-
SignupForm.jsx - Signup form component.
-
... (and more React components and views)
-
In the server and client directory, run the following command:
npm install
MySQL database recommended
- Required database name:
viral_db
- Required all-access account:
- username:
viral_admin
- password:
viral_password
- username:
The Viral Master repository is a feature-rich social media platform that offers a wide range of functionalities for user interaction and content sharing.