Instagram-clone is a full-stack project built with Next.js, Tailwind CSS, and Firebase. It includes all the core features of Instagram and utilizes tools like next-auth and Faker.js for authentication and data generation.
Untitled.mp4
- Sign In/ Sign out
- Likes, Comments
- Fully Responsive
- Google Authentication
- More....
Technologies: React.js, Next.js, Tailwind CSS, Recoil, Firebase
Libraries/Tools: Hero Icons, tailwind-forms (plugin), faker.js, Tailwind-scrollbar (plugin), Tailwind-scrollbar-hide (plugin), NextAuth, useSession Hook (provided by NextAuth)
Clone the project
git clone https://github.com/patilharsh03/instagram-clone
Go to the project directory
cd my-project
Install dependencies
npm install
Start the server
npm run dev
Note :- You have to intialize your app on firebase to run this project perfectly.
To run this project, you will need to add the following environment variables to your .env file
GOOGLE_ID
GOOGLE_SECRET
NEXTAUTH_URL
// Implementation of how to use Faker.js to get some random data
import { faker } from "@faker-js/faker";
import { useState, useEffect } from "react";
function Suggestions() {
const [suggestions, setSuggestions] = useState([]);
useEffect(() => {
const suggestions = [...Array(5)].map((_, i) => ({
avatar: faker.internet.avatar(),
username: faker.internet.userName(),
cityname: faker.address.cityName(),
country: faker.address.country(),
id: i,
}));
setSuggestions(suggestions);
}, []);
- I Learned about many new things about Next.js, how to use Recoil and Tailwind Plugins.
- How to use NextAuth library for authentication.
- used many libraries and tools to integrate with projects.
- Learned about Firebase more deeply and how things work with the help of it.
I deployed this Project on vercel and home page is working perfectly well. But when I click the Sign In button it showing a server error. I Tried to find the answers from many places but until right now couldn't find the solution.
Please support by ⭐ this project.