ça-mâche-quoi front is a React web application in TypeScript.
make install
Start the dev server / watcher:
make serve
Linting:
make lint
The app exposes some configuration variables through env vars.
By default, it loads vars from env files depending on the context, in the
following order:
.env
.env.local
.env.{production,staging,development}
.env.{production,staging,development}.local
Last defined value wins. Actual env var always wins.
Note: You can also load another specific env file determined by the
ENV_FILE
var, for instance:ENV_FILE=.env.production make serve
To add new configuration variables, add these to the main .env
file
and provide a development value (if relevent) in the .env.development
file.
Build for production using:
make build@production
Build for staging using:
make build@staging
Serve a build:
make serve.static