Portofolio dani aprilyanto built with NextJS v15 and TailwindCSS v4.
- Node.js
- PNPM
Follow these steps to set up the project:
-
Clone the repository:
git clone https://github.com/danisec/portofolio.git cd portofolio -
Install the dependencies:
pnpm install
-
Start the development server:
pnpm run dev
-
Build the project:
pnpm run build
-
Start the production server:
pnpm run start
- Access the application in your browser at
http://localhost:3000.
- Copy env template:
cp .env.example .envdocker compose -f docker-compose.dev.yml up --build- Runs Next.js in dev mode (
npm run dev) with bind mount. - Any local file changes are reflected automatically (hot reload).
- App URL:
http://localhost:3000
docker compose up -d --build- Builds and runs production image (
next build+next start). - App URL mengikuti
DOCKER_APP_PORT_PROD(default3005).
DOCKER_APP_PORT_DEV: host port untuk dev container.DOCKER_APP_PORT_PROD: host port untuk prod container.APP_INTERNAL_PORT: port aplikasi di dalam container.DOCKER_CONTAINER_NAME_DEV: nama container dev.DOCKER_CONTAINER_NAME_PROD: nama container prod.WATCHPACK_POLLING,CHOKIDAR_USEPOLLING: optimasi file watching untuk hot reload di Docker.
- public: Contains static files.
- images: Contains the images.
- logo: Contains the logo images.
- profile: Contains the profile images.
- showcase: Contains the showcase images.
- resume: Contains the resume files.
- images: Contains the images.
- src: Contains the source code.
- components: Contains the components.
- pages: Contains the pages.
- data: Contains the data.
- utils: Contains the utility functions.
