PhotoFlow is a frontend Instagram clone that replicates Instagram's frontend design for most features available as of the project's creation date. It also uses Faker.js to generate dynamic data.
To run this project locally, follow these steps:
Clone the project:
git clone https://github.com/Dev-R/PhotoFlow.git
Go to the project directory
cd PhotoFlow
Install dependencies
yarn install
Start the server
yarn run dev
You can run PhotoFlow using Docker in either development or production mode:
Build the development Docker image:
docker build -f Dockerfile.development -t photoflow:dev .
Run the development container:
docker run -p 5173:5173 photoflow:dev
This will start the development server with hot-reload enabled.
Build the production Docker image:
docker build -f Dockerfile.production -t photoflow:prod .
Run the production container:
docker run -p 5173:5173 photoflow:prod
This will serve the optimized production build using the serve package.
You can access the application at http://localhost:5173
in both modes.
Since this project uses Faker.js, you have control over the number of posts, stories, and comments rendered. To customize this data, navigate to the SampleGenerator class:
cd src\data
code fakerGenerator.ts
The data generated is intentionally inconsistent and ever-changing using Faker.js. Each refresh may provide new usernames and content. As such, this project serves more as a template and design showcase.