Vue + Vite application using Server Side Rendering (SSR)
You need to create a .env file to set the environment variables with the following content:
PORT=3000
API_URL=https://example.com
yarn dev
yarn build:server
yarn build:client
yarn start
Files are contains in ./config/docker
The environment variables are directly set inside the docker-compose.{prod | dev}.yml file
make # start the container for Unix systems
make stop # stop the container for Unix systems
docker-compose -f ./config/docker/docker-compose.dev.yml up --build # start dev
docker-compose -f ./config/docker/docker-compose.prod.yml up --build # start prod
yarn test:unit
yarn test:e2e
If you go to ./src/client/components/themeSwitch
you can find the toggle swtch from this tiktok