A simple social media app built using React, Node.js, Express, and MongoDB.
- User registration and login: Users can create an account and log in using their registered credentials.
- Post creation: Logged-in users can create posts and share their thoughts or content with others.
- Friend management: Users can add friends and view their friend list.
- Image uploading: Users can upload pictures to include in their posts.
React
, MongoDB
, React-router
, Mongoose
, Redux toolkit
, NodeJS
, ExpressJS
, Material UI
- Node.js and npm installed on your machine
- MongoDB database connection string
- JSON Web Token secret
git clone https://github.com/Samowusu/HEY-CONNECT.git
- Install dependencies:
cd hey-connect-backend
npm install
- Configure the environment variables:
-
Create a
.env
file in the root directory of the project. -
Define the necessary environment variables, such as the MongoDB connection string and JSON Web Token secret.
For example:
MONGO_URL=<your mongo connection string> PORT=3001 JWT_SECRET=<your json web token secret> JWT_LIFETIME=30d
Replace
<your mongo connection string>
and<your json web token secret>
with your actual MongoDB connection string and JSON Web Token secret respectively.
- Start the development server:
npm start
- Install dependencies:
cd hey-connect-frontend
npm install
- Start the development server:
npm start
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to submit a pull request.
This project is licensed under the MIT License.