This project is an Instagram clone that implements the main features of Instagram. The frontend is built using Next.js and the backend is built using NestJS. There are no commercial or advertising purposes, and it is for study purposes only.
-
Clone the repository.
git clone https://github.com/GWjun/inhagram.git cd insta-clone -
Install dependencies.
pnpm install:all
-
(opontial) You can install frontend and backend dependencies separately.
cd frontend pnpm installcd backend pnpm install
-
Create
.env.localfiles in thefrontenddirectory and configure them as needed.NEXT_PUBLIC_SERVER_URL=http://localhost:8080 NEXT_PUBLIC_SERVER_DOMAIN=localhost NEXT_PUBLIC_TOKEN_EXPIRE=your-accessToken-expire-milli-second NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_SECRET=your-secret-key
-
Create
.env.localfiles in thebackenddirectory and configure them as needed.PROTOCOL=http HOST=localhost:8080 PORT=8080 # auth JWT_SECRET=your-secret-key HASH_ROUNDS=your-hash-round-value ACCESS_EXPIRE=your-accessToken-expire-second REFRESH_EXPIRE=your-refreshToken-expire-second # DB DB_HOST=localhost DB_PORT=5432 DB_USERNAME=name DB_PASSWORD=password DB_DATABASE=database # Google Cloud Storage PROJECT_ID=your-id PRIVATE_KEY=your-key CLIENT_EMAIL=your-email STORAGE_BUCKET=your-bucket-name DEFAULT_AVATAR_URL=your-default-image
-
Turn on the Docker app before starting your project to access the database.
-
To run both the frontend and backend servers simultaneously, go to the root directory and run:
pnpm start
-
Accessing the Application
- You can access the frontend application at http://localhost:3000.
- You can access the backend application at http://localhost:8080.
start: Runs both frontend and backend servers concurrently.start:frontend: Runs the frontend server only.start:backend: Runs the backend server only.
This project is licensed under the MIT License.





