This is a full-featured social media application built using Next.js. It leverages PostgreSQL for data storage and AWS S3 for media management. The application can be set up manually or using Docker Compose for a streamlined experience.
Before setting up the project, ensure you have the following installed:
- Node.js (latest LTS version recommended)
- PostgreSQL (running instance required)
- AWS S3 bucket (for media storage)
- Docker (if using the Docker-based setup)
-
Clone the Repository
git clone https://github.com/sidharthtripathi/instagram-nextjs
-
Navigate into the Project Directory
cd instagram-nextjs -
Install Dependencies
npm install
-
Set Up Environment Variables
- Copy
.env.exampleto.env - Configure PostgreSQL and AWS S3 settings accordingly
- Copy
-
Initialize the Database
npm run db:init
-
Start the Development Server
npm run dev
The application will now be accessible at
http://localhost:3000.
-
Set Up the Environment Variables
- Copy
.env.exampleto.envand configure it properly.
- Copy
-
Start All Services Using Docker Compose
docker-compose up -d
This will launch the application along with the required services.
