Skip to content

Building manually

dptole edited this page Jan 18, 2020 · 1 revision

Manual build

I made the build process as easy as I could, with few dependencies and simple building steps, you could even skip them if you know where to update the code for the building process.

In order to build the blog manually there are a few requirements:

  • Nodejs 12+
  • Uglifyjs 3.6.4 (npm i -g uglify-js@3.6.4)
  • Elm 0.19.1

After you satisfy those requirements its time to choose which build process you are most interested in bellow.

Production build

The production build is not made to support constant updates in the frontend/backend code: build it and watch it running.

git clone https://github.com/dptole/elm-blog
bash elm-blog/build.sh
node elm-blog/backend/app

These commands do the following:

  • Download the repo... of course;
  • Run the Elm building process and optimizations;
  • Start up the server at http://localhost:9090/

Development build

The development build runs elm reactor on port 8080, frontend updates are allowed but its necessary to restart the backend everytime you want to see an update being reflected on the UX:

git clone https://github.com/dptole/elm-blog
# Open up a new terminal and go to the same path you downloaded the repo
node elm-blog/backend/app
# Open up a new terminal again
cd elm-blog/frontend
elm reactor --port 8080

These commands do the following:

Clone this wiki locally