i-Book is a modern social media platform that allows users to connect and interact with their friends and communities anonymously. This project is a clone of a popular social media website, with enhanced features for privacy-conscious users. Users can upload media (photos, videos), share locations, create groups, and engage with trending content in their region.
There are two ways to get started with the i-Book project: either by running the app locally using npm or by building it using Docker. Follow the instructions for the setup method that works best for you.
-
Clone the Repository
Clone the project repository using:git clone <repo_link>
-
Navigate to the Client Directory
cd client
-
Install Dependencies
npm install
-
Create an Environment File
Create a.env
file in theclient
directory and add the following lines:REACT_APP_PUBLIC_FOLDER=http://localhost:8000/images/ GENERATE_SOURCEMAP=false REACT_APP_PATH_TO_BACKEND=http://localhost:8000
-
Start the Client
Run the following command to start the frontend:npm run start
-
Navigate to the API Directory
In a new terminal window, navigate to theapi
directory:cd ../api
-
Install API Dependencies
npm install
-
Start the API
Start the backend server by running:npm run start
If you prefer working with Docker, follow these steps to run the application using Docker containers.
-
Clone the Repository
Clone the project repository using:git clone <repo_link>
-
Navigate to the API Directory
First, build and run the backend in a Docker container:cd api
-
Build the API Docker Image
Build the Docker image for the backend:docker build -t 'api-docker-image' .
-
Run the API Container
Start the backend container with the following command:docker run -p 8000:8000 'api-docker-image'
-
Navigate to the Client Directory
In another terminal window, navigate to theclient
directory:cd ../client
-
Build the Client Docker Image
Build the Docker image for the frontend:docker build -t 'client-docker-image' .
-
Run the Client Container
Start the frontend container with the following command:docker run -p 3000:3000 'client-docker-image'
Feature | Description |
---|---|
Anonymous Interaction | Users can interact with their friends and communities while keeping their identities hidden. |
Media Sharing | Upload photos, videos, and share locations with your network. |
Group Creation | Form and join groups with people who share similar interests. |
Trending Content | Stay updated with popular content in your area and interact with it. |
We encourage you to contribute to the i-Book project! Please follow the guidelines below to make contributions:
-
Fork the repository and then clone it using:
git clone <repo_link>
-
Work on the
develop
branch only. Please do not clone or fork themaster
branch.
To create a new branch for your contributions, run:git checkout -b <your_branch_name>
-
Front-end contributions only: Focus on making changes to the code in the
client
folder. No changes to the API are required unless otherwise requested. -
Creating Pull Requests (PRs):
- PRs should be made to the
develop
branch only. PRs to any other branches will be rejected.
- PRs should be made to the
- This project was inspired by several popular social media platforms but focuses on enhancing user privacy and interaction.
- Thanks to all contributors and the open-source community for their support and resources in making this project possible.