This project sets up a development environment using Docker Compose, consisting of two containers:
🚀 NestJS API: This container houses your NestJS backend application.
🎨 Next.js Frontend: This container houses your Next.js frontend application.
- Docker installed and running on your system.
- Node.js and npm installed on your system.
- Clone this repository.
- Navigate to the project directory.
- Build the ENV image:
docker-compose up --build
- NestJS API: The API is accessible on port
3000
of the host machine. You can access the Swagger documentation at http://localhost:8080/api/swagger. - Next.js Frontend: The frontend is accessible on port
3001
of the host machine. You can access the application at http://localhost:3001.
docker-compose down
You can configure environment variables for both applications by creating a .env file in the project root directory. The .env file will be automatically loaded by Docker Compose.
You can develop your applications directly within their respective containers. Changes made to the source code will be automatically reflected in the running applications.