- Docker
- Docker Compose
- Make to use the provided Makefile (optional but recommended)
- Copy
.env.exampleto.env.localand fill in the required environment variables - Run
make devto start the development server. This will install dependencies and start the server. - Open your browser and navigate to
http://localhost:3000to see the website. - To stop the development server, stop the Docker container with
Ctrl+Cin the terminal wheremake devwas run.
- The development server supports hot-reloading, so any changes you make to the code will automatically be reflected in the browser.
- If you need to install new dependencies, you can do so by running
make add-dependency <package-name>ormake add-dev-dependency <package-name>for dev dependencies.
The project uses GitHub Actions for continuous integration and deployment. The workflow is defined in .github/workflows/build.yml.
- Next.js Build: This stage installs dependencies, lints the code, and builds the Next.js application.
- Docker Build and Push: This stage builds a Docker image of the application and pushes it to the registry. The push is triggered only on the
mainbranch with a tag starting withv.
- The workflow expects a secret named
WEBSITE_ENV_PRODUCTION_FILEcontaining the contents of the.env.productionfile. This file is created during the CI process to ensure that sensitive information is not hardcoded in the repository