Changeset View
Changeset View
Standalone View
Standalone View
README.md
## Development | ## Development | ||||
To start development on #Larus, execute the following: | To start development on #Larus, execute the following: | ||||
#. Become some sort of privileged user: | #. Become some sort of privileged user: | ||||
$ sudo su - | $ sudo su - | ||||
#. Download the repository configuration: | #. Download the repository configuration: | ||||
# cd /etc/yum.repos.d/ | # cd /etc/yum.repos.d/ | ||||
# wget https://obs.kolabsys.com/repositories/home:/vanmeeuwen:/erlang-18.3/Fedora_23/home:vanmeeuwen:erlang-18.3.repo | # wget https://obs.kolabsys.com/repositories/home:/vanmeeuwen:/erlang-18.3/Fedora_23/home:vanmeeuwen:erlang-18.3.repo | ||||
# wget https://obs.kolabsys.com/repositories/home:/vanmeeuwen:/phoenix/Fedora_23/home:vanmeeuwen:phoenix.repo | # wget https://obs.kolabsys.com/repositories/home:/vanmeeuwen:/phoenix/Fedora_23/home:vanmeeuwen:phoenix.repo | ||||
#. Install elixir: | #. Install phoenix: | ||||
# dnf -y install elixir | # dnf -y install phoenix | ||||
#. Install and start a Postgres server: | |||||
# dnf -y install postgresql-server | |||||
# systemctl enable postgresql | |||||
# postgresql-setup --initdb | |||||
# sed -i -e 's/ident/trust/g' /var/lib/pgsql/data/pg_hba.conf | |||||
# systemctl start postgresql | |||||
#. Don't forget to log out: | #. Don't forget to log out: | ||||
# logout | # logout | ||||
#. Provided your GIT checkout, initialize git flow: | #. Provided your GIT checkout, initialize git flow: | ||||
$ git flow init --default | $ git flow init --default | ||||
#. Download and install the required `.ez` files: | #. Download and install the required `.ez` files: | ||||
$ mix local.hex | $ mix local.hex | ||||
$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez | $ mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez | ||||
#. Start a feature, support, hotfix, ...: | #. Start a feature, support, hotfix, ...: | ||||
$ git flow feature start trial-and-error | $ git flow feature start trial-and-error | ||||
$ cd larus | $ cd larus | ||||
$ mix deps.get | $ mix deps.get | ||||
$ npm install | $ npm install | ||||
$ mix phoenix.server | $ mix phoenix.server | ||||
### Before you commit | ### Before You Commit | ||||
$ mix dogma | $ mix dogma | ||||
$ mix credo | $ mix credo | ||||
Fix coding style issues that are reported. | |||||
$ mix test | |||||
$ mix docs | |||||
## `~/.vimrc` | ## `~/.vimrc` | ||||
Use `~/.vimrc` or equivalent to ensure the "correct" indentation is used: | Use `~/.vimrc` or equivalent to ensure the "correct" indentation is used: | ||||
``` | ``` | ||||
" | " | ||||
" elixir and such | " elixir and such | ||||
autocmd BufRead,BufNewFile *.ex set shiftwidth=2 tabstop=2 expandtab | autocmd BufRead,BufNewFile *.ex set shiftwidth=2 tabstop=2 expandtab | ||||
Show All 19 Lines |