You have to have Node.js installed on your machine. If you don't have it, I strongly recommend you to install it using a version manager like nvm.
To begin with the development setup, follow the steps listed below:
-
Clone the repository:
git clone https://github.com/erkal/erkal.github.io.git
-
Navigate to the project directory:
cd erkal.github.io
-
Install all dependencies:
npm install
-
Run the development server:
npm run dev
This starts serving of all pages. To access them, launch your browser and navigate to http://localhost:8000/.
With this setup, when you alter your code, the modifications will take effect immediately, without any loss of the current state. This efficient, seamless functionality is made possible by the exceptional lydell/elm-watch, which flawlessly manages hot reloading.
-
Adding a new example:
Copy one of the existing pages and change the module names of the Elm files in it accordingly. And you are ready to go.