# M-Labs.hk website source code These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. For deployment, see the nix-scripts repository. Commits to https://git.m-labs.hk/M-Labs/web2019.git are automatically deployed to m-labs.hk through Hydra. Clone the project: ``` git clone https://git.m-labs.hk/M-Labs/web2019.git cd web2019 ``` Install Zola. Start with targeting `m-labs.hk` domain: ``` DOMAINNAME=m-labs.hk zola serve ``` `DOMAINNAME=m-labs.hk` can be omitted, since it defaults to `m-labs.hk`. For any other domains it needs to be set explicitly. To build the .bundle.js from .jsx files: ``` nix-shell -p nodejs npm install npm run build ``` ## Domain handling Environmental variable `DOMAINNAME` controls only the following links on the website: * email `mailto:` links * hook for the RFQ server (`window.API_RFQ`) variable If absent, `DOMAINNAME` defaults to `m-labs.hk`.