Skip to content
A weekly email for busy people who care about augmented reality
Branch: master
Clone or download
Latest commit 3bebce1 May 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
config Update prod conf to generate https urls Dec 27, 2018
lib If several issues with the same number exist, use the latest to gener… Feb 18, 2019
priv
rel Add deployment config Dec 27, 2018
test
.formatter.exs Initial commit Nov 19, 2018
.gitignore Rename project to ar-weekly Dec 15, 2018
LICENSE Update readme and add MIT license Dec 26, 2018
README.md Add issue 2019-01-19 and updat docs on releasing issues Jan 20, 2019
compile Add phoenix static buildpack config Dec 27, 2018
elixir_buildpack.config
mix.exs
mix.lock Add deployment config Dec 27, 2018

README.md

AR Weekly

A weekly email for busy people who care about augmented reality. AR Weekly is a curated list of the most relevant augmented reality news from the week. Sent to your inbox every monday.

Technology

  • Phoenix is used to build the website and the newsletter engine

Development Prerequisites

You will need the following things properly installed on your computer.

Development Installation

git clone git@github.com:Domeee/ar-weekly.git
cd ar-weekly
mix deps.get
mix ecto.setup
cd assets && npm install

Run development

mix phx.server

Now you can visit localhost:4000 from your browser.

Run prod on localhost

mix deps.get
cd assets
npm install
npm run deploy
cd ..
mix phx.digest

MIX_ENV=prod mix release --env=prod

# include all env vars
MIX_ENV=prod SECRET_KEY_BASE="$(mix phx.gen.secret)" DATABASE_URL="postgresql://postgres:postgres@localhost:5432/ar_weekly_dev" MY_HOSTNAME=ar-weekly.blog MY_COOKIE=secret REPLACE_OS_VARS=true CIPHER_KEYPHRASE=keyphrase CIPHER_IVPHRASE=ivphrase MAILGUN_API_KEY=api_key MY_NODE_NAME=ar_weekly@127.0.0.1 PORT=4000 \_build/prod/rel/ar_weekly/bin/ar_weekly foreground

Deploy to production

git push gigalixir master
gigalixir ps:migrate
gigalixir ps:remote_console
seed_script = Path.join(["#{:code.priv_dir(:ar_weekly)}", "repo", "seeds.exs"])
Code.eval_file(seed_script)

Issue releases

Test release @ localhost (with mix)

iex -S mix
ArWeekly.Issues.release(:beta, ~D[2019-01-21] \\ Timex.today())

Test release @ production

gigalixir ps:remote_console
ArWeekly.Issues.release(:prod, ~D[2019-01-21] \\ Timex.today())

Contribute

Pull requests are warmly welcome.

You can’t perform that action at this time.