This git repository contains the code for my personal website at https://qhouyee.github.io/
The project can be built either locally or on the Docker platform.
For local builds, install the pre-requisite node dependencies in the <root>
directory through a CLI:
npm install
Deploy the website using one of the following scripts:
npm run dev
: For developmentnpm run preview
: For previewing production builds locallynpm run build
: For deployment
The project can also be built on the Docker platform, and several configurations have been set up for different environments.
In the development environment, hot reloading is enabled, and any changes to the code base will be reflected immediately on the website. To start the server, navigate to the <root>
directory and run the following code in a CLI:
docker-compose up -d
If successfully run, the website will be available at http://localhost:3000/
With Docker running, navigate to the <root>
directory and run the following code in a CLI:
docker compose -f "./docker-compose.prod.yml" up -d --build
The outputs will be available in the build folder for your deployment.