This is a Canon-Site template for projects using canon as main react environment. To start using this template, just create a new repository from this template and start coding 🎉
npm run dev
If you are using node directly to develop, please recall your typical .env
file to .env.local
. For this, use .env
as a guide
- Install Docker on your machine
- Build your container with:
- NO ENV VARS AT BUILDTIME:
docker build -t <PROJECT_NAME>-canon-site .
- WITH ENV VARS AT BUILDTIME:
docker build --build-arg <ENV_NAME>=<ENV_VALUE> -t <PROJECT_NAME>-canon-site .
- Run your container:
- NO ENV VARS AT RUNTIME:
docker run -p 3300:3300 <PROJECT_NAME>-canon-site
- WITH ENV VARS AT RUNTIME:
docker run --env-file=./.env.local -p 3300:3300 <PROJECT_NAME>-canon-site