In the DDEV project directory launch the command:
ddev get machine-rc/ddev-frontend-nextjs
Restart the DDEV instance:
ddev restart
Access NextJS frontend application on defined port (or 3003 default) via the url: https://your-project-name.ddev.site:3003/
git clone [email protected]:machine-rc/ddev-frontend-nextjs.git
cd ddev-frontend-nextjs
cd frontend
npm install
npm run build
The project includes a Dockerfile to build a Docker image for the service.
Current structure allows support for multiple graphql services. To add a new service:
frontend directory with the service name.Dockerfile from the frontend/nextjs directory and modify it as needed.docker-compose.frontend-nextjs.yaml to include the new service by duplicating the dotnet-users service and changing the service name
environment section to expose the new service on a different port