SpaceFeed is a social media platform where users can upload posts and images, like and comment on other people's posts, receive realtime notifications and do many other things
SpaceFeed is a web app built using the MERN stack! Here, a user can create account, search and follow users, interact with their posts, share them and do a lot more!
You can try SpaceFeed by visiting: https://spacefeed.ishantchauhan.com/
Here is a short video on how to use SpaceFeed
To know more about how I built this project, read my article here: https://ishantchauhan.hashnode.dev/my-debugging-adventure-fixing-bugs-in-spacefeed
- Authentication - Users can create account using email, password, profile picture and other details
- Create Posts - Users can upload posts containing images
- Interact With Posts - Users can like, comment, share and like a particular comment on a post
- Follow User - Users can follow and unfollow other users
- User Suggestions - Users can see a list of suggested users when visiting the profile page
- Realtime Notifications - Users can receive instant notifications whenever someone likes or comments on their post
- User Search - Users can search a person using his name or email
- News - Users can see who commented on whom's post
- The frontend of SpaceFeed is created using ReactJS and MaterialUI. SpaceFeed is highly responsive and is tested on all popular browsers like Chrome, Safari and Opera Mini. For handling the react states, Redux Toolkit is used. All the react components and file structure are properly organized.
- The backend of SpaceFeed is built using NodeJs, ExpressJs, MongoDB and Socket.io. For authentication, SpaceFeed makes use of session based authentication. For storing images, Firebase storage is used.
If you want to clone this project and customize it further, you need to do a couple of tasks first:
- Create an account on MongoDB Cloud, setup a cluster and get its connection string
- Create an account on Firebase, enable storage and get your google-services.json file and bucket name from there
- Clone this project. You can directly download the source code .zip file, or you can use the git clone command in terminal
- Once successful, open your VSCode in the project folder and in terminal, write the following commands:
npm install
cd frontend
npm install
cd ..
- After this, create a new file with the exact name of ".env"
- In the .env file, write:
PORT = 5000
MONGO_CONNECTION_STRING = --paste your cloud mondodb cluster's connection string--
FIREBASE_STORAGE_BUCKET = -- paste your firebase bucket name here eg. example.appspot.com --
SESSION_SECRET = 12345
DUMMY_USER_PASSWORD_HASH = $2a$12$QPROumv.az41u43V2nW48OQ0hhIRw7TWvEmlWknqq3EVMurBZ5YO.
NODE_ENV = development
- In the root folder, paste your google-services.json file and rename it to spacefeed_firebase.json
- You are all set up now! To start the backend server, in terminal write:
npm start
- And to start the frontend, write:
cd frontend
npm start
- Then write localhost:3000 in your browser to be able to use SpaceFeed!
- To build the project for production purpose, in the .env file, change NODE_ENV to production
- Then in terminal, write
cd frontend
npm run build
cd ..
- Once the build is completed, simply write npm start to run the website in production mode!
For any queries, you can mail me at developerishant710@gmail.com