Procedural Generation API
Elixir Platform using Phoenix
Make sure to have PostgreSQL installed.
To start the Phoenix server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.create && mix ecto.migrate
- Install Node.js dependencies with
cd assets && npm install
- Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000
from your browser.
Change the username / password in config/dev.exs
to match your postgres installation
Create a config/prod.secret.exs
of the form below but with a unique secret key base and the PostgreSQL username/password info.
use Mix.Config
# In this file, we keep production configuration that
# you'll likely want to automate and keep away from
# your version control system.
#
# You should document the content of this
# file or create a script for recreating it, since it's
# kept out of version control and might be hard to recover
# or recreate for your teammates (or yourself later on).
config :bake, BakeWeb.Endpoint,
secret_key_base: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# Configure your database
config :bake, Bake.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "bake_prod",
pool_size: 15