You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alexander Wong b39f5af848 added in stub user live view port from phx 1.5 quickstart 3 months ago
.circleci added coveralls/junit test output formatting 3 months ago
.vscode added authenticate_user 3 months ago
assets added in stub user live view port from phx 1.5 quickstart 3 months ago
config added authenticate_user 3 months ago
lib added in stub user live view port from phx 1.5 quickstart 3 months ago
priv Squashed commit of the following: 3 months ago
rel Gigalixir for prototype hosting 3 months ago
test added in stub user live view port from phx 1.5 quickstart 3 months ago
.formatter.exs mix phx.new opt --binary-id --verbose 3 months ago
.gitignore set license, minimal development quickstart 3 months ago
LICENSE set license, minimal development quickstart 3 months ago
README.md Squashed commit of the following: 3 months ago
elixir_buildpack.config set elixir, erlang, and node version 3 months ago
mix.exs added authenticate_user 3 months ago
mix.lock added authenticate_user 3 months ago
phoenix_static_buildpack.config set elixir, erlang, and node version 3 months ago

README.md

opt

awwong1/opt Coverage Status

opt: to make a choice, to decide in favor of something

Development

elixir -v
# Erlang/OTP 22 [erts-10.7] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
# Elixir 1.9.4 (compiled with Erlang/OTP 22)
node -v
# v12.16.1
docker -v
# Docker version 19.03.8, build afacb8b7f0
# fetch Postgres from Docker and mount a local volume for persistence
docker pull postgres:12.2
mkdir -p ${HOME}/docker/volumes/pg_opt_dev
docker run \
  --rm \
  --name pg-opt-dev \
  --env POSTGRES_DB=opt_dev \
  --env POSTGRES_USER=postgres \
  --env POSTGRES_PASSWORD=postgres \
  --publish 5432:5432 \
  --volume ${HOME}/docker/volumes/pg_opt_dev:/var/lib/postgresql/data \
  --detach \
  postgres:12.2

# Fetch elixir dependencies
mix deps.get
# Create and migrate the database
mix ecto.setup
# Install Node.js dependencies
npm install --prefix assets
# cd assets && npm install && cd ..
# Start the application
mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

License

Apache Version 2.0

   Copyright 2020 Alexander Wong, Udia Software Incorporated

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.