-
Notifications
You must be signed in to change notification settings - Fork 0
Building manually
dptole edited this page Jan 18, 2020
·
1 revision
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 [email protected]
) - Elm 0.19.1
After you satisfy those requirements its time to choose which build process you are most interested in bellow.
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/
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:
- Download the repo... of course;
- Run the backend server in one terminal (http://localhost:9090/);
- Run the frontend server in another terminal (http://localhost:8080/)