The tools you will need to install:
- zoom
- git (https://git-scm.com/downloads).
- an editor that you are comfortable with.
- a working PostgreSQL install
For the development dependencies, you'll need:
- Elixir (Elixir 1.10.0 or better)
run the command:
elixir -v
Erlang/OTP 21 [erts-10.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]
Elixir 1.10.1 (compiled with Erlang/OTP 21)
[demo] (master=) ➔ elixir -v
Erlang/OTP 21 [erts-10.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]
Elixir 1.10.1 (compiled with Erlang/OTP 21)
- node.js. Not optional! for Phoenix assets (I'm running npm -v 6.13.4)
- Phoenix 1.5.3 (Yay: It includes LiveView. That will help.)
Is Phoenix working? Make sure you can run this command:
mix phx.new demo --live
(say yes to fetch dependencies and assets)
and make sure you can then create the database:
cd demo
mix ecto.create
Don't save this for the last minute! There are a few dependencies that will give you trouble if you've never done this before and decide to wait.
- Fork this repository to your github account.
- Go to https://github.com/groxio-learning/phx_24_June
- Click the
fork
button in the upper right corner - Navigate to your local version (at something like https://github.com/your-github-account/phx_24_June )
- copy the clone address to your clipboard. In the upper right, click
clone or download
thencopy to clipboard
- Clone your local version to your local machine.
- Clone it. REPLACE your-github-account with your account:
> git clone https://github.com/your-github-account/phx_24_June.git
...clones repo...
cd phx_24_June
- Verify your remote:
$ git remote -v
> origin https://github.com/your-user/phx_24_June.git (fetch)
> origin https://github.com/your-user/phx_24_June.git (push)
- If there's no origin, set it. Make sure you replace your-github-account:
phx_24_June> git remote add origin https://github.com/your-github-account/phx_24_June.git
- Verify your remote:
$ git remote -v
> origin https://github.com/your-user/phx_24_June.git (fetch)
> origin https://github.com/your-user/phx_24_June.git (push)
- Set the upstream to the Groxio repo:
phx_24_June> git remote add upstream https://github.com/groxio-learning/phx_24_June.git
- Verify the remotes:
> origin https://github.com/your-user/phx_24_June.git (fetch)
> origin https://github.com/your-user/phx_24_June.git (push)
> upstream https://github.com/groxio-learning/phx_24_June.git (fetch)
> upstream https://github.com/groxio-learning/phx_24_June.git (push)
- Now check out your setup. Send me a pull request: Edit the file "pull_requests.md" and add your name:
- Edit pull_requests.md
Bruce Tate
Your Name
- Commit the file and push
> git commit . -m "my commit"
...some happy success message...
> git push origin master
...some happy success message...
Now go to your repo online. Click: "Compare and create pull request"
You're homework is done!
[otp] git clone path-to-your-repo