A full-stack social media web application built using the MERN (MongoDB, Express, React, Node.js) stack. Users can authenticate using Google login, perform CRUD operations on posts, search for posts, like and comment on posts. The app is styled using Tailwind CSS, and Redux Toolkit is used for state management.
- User authentication using Google login.
- Create, read, update, and delete posts.
- Search for posts by keywords or tags.
- Like and comment on posts.
- Responsive design with Tailwind CSS.
- State management with Redux Toolkit.
-
Frontend:
- React
- Redux Toolkit
- Tailwind CSS
-
Backend:
- Node.js
- Express.js
- MongoDB (or your preferred database)
-
Authentication:
- Google OAuth (Add instructions on how to set up your Google OAuth credentials)
-
Deployment:
- Deployment platform (e.g., Heroku, Vercel, AWS, etc.)
-
Clone the repository:
git clone https://github.com/lateefibrahim01/mern-posts.git
-
Navigate to the project directory:
cd your-mern-app
-
Install dependencies for both the client and server:
cd client
npm install
cd ../server
npm install
-
Change .env.sample in server and client directories to .env and add your credentials to it.
-
Start the development server:
npom start
-
Open your browser and navigate to http://localhost:3000 to access the app.
-
Click on the "Login with Google" button to authenticate.
-
Use the app to create, view, edit, and delete posts. You can also search for posts, like, and comment on them.
To deploy your app, follow the deployment guidelines for your chosen platform (Heroku, Vercel, AWS, etc.). Make sure to set up your production environment variables.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push to your fork and submit a pull request.
This project is licensed under the MIT License.