30 lines
731 B
Markdown
30 lines
731 B
Markdown
# 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:
|
|
|
|
```
|
|
zola serve
|
|
```
|
|
|
|
To build the .bundle.js from .jsx files:
|
|
|
|
```
|
|
nix-shell -p nodejs
|
|
npm install
|
|
npm run build
|
|
```
|
|
|
|
Development builds are also available. `npm run build-dev` to re/build once, or `npm run start-dev` for incremental
|
|
continuous builds as source files change. |