Hey Ben, thanks for the friendly, detailed, and fast reply!
The Windows machine is just my gaming box, I’ve got Debian/Fedora laptops lying around. I’ll try on those if I have too much trouble. Worst case scenario I’ll just muddle through the tutorial with the latest version of Phoenix.
Checked the Node releases and saw Node.js 8.11.3 released on 2018-06-12. Luckily this is super easy to install with NVM, but getting the rest of the Phoenix build toolchain may be tricky for sure.
Hopefully the following will be enough, will try and tag this question with Windows and report back if things go well. Things seemed to install just fine after running:
nvm install 8.11.3
choco install erlang --version=20.3
choco install elixir --version=1.5.3
PS C:\Users\Developer> elixir --version
Erlang/OTP 20 [erts-9.3] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10]
PS C:\Users\Developer> node -v
mix archive.install hex phoenix 1.2.5 failed, but this worked:
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez
In the project I had some weirdness getting the npm dependencies installed but this was fixed with
npm i -g brunch@2 and running
npm install again.
Needed to use Postgres 9, otherwise ecto was throwing errors I couldn’t figure out:
docker run --name <name> -p 5432:5432
-e POSTGRES_PASSWORD=<pwd> -d postgres:9
…can’t believe it works lol. Installing things like this on Windows is usually a nightmare, I’ll post back if I have any further issues.
PS C:\Users\Developer\Documents\Elixir\discuss> mix phoenix.server
Compiling 12 files (.ex)
Generated discuss app
[info] Running Discuss.Endpoint with Cowboy using http://localhost:4000
08:48:25 - info: compiled 6 files into 2 files, copied 3 in 1.0 sec
[info] GET /
[debug] Processing by Discuss.PageController.index/2
[info] Sent 200 in 31ms