bharani91 / ex-shop Goto Github PK
View Code? Open in Web Editor NEWDigital goods shop & blog created using Elixir (Phoenix framework)
Home Page: https://www.authenticpixels.com
License: MIT License
Digital goods shop & blog created using Elixir (Phoenix framework)
Home Page: https://www.authenticpixels.com
License: MIT License
hey, cool project
getting an error creating first product, have a new category already created
new blogs and pages works ok
[error] #PID<0.584.0> running Ap.Endpoint terminated
Server: localhost:4000 (http)
Request: GET /admin/products/new
** (exit) an exception was raised:
** (KeyError) key :model not found in: %Phoenix.HTML.Form{data: %Ap.Variant{__meta__: #Ecto.Schema.Metadata<:built, "variants">, delete: nil, description: nil, id: nil, inserted_at: nil, price: nil, product: #Ecto.Association.NotLoaded<association :product is not loaded>, product_id: nil, purchase_url: nil, title: nil, updated_at: nil}, errors: [], hidden: [], id: "product_variants_0", impl: Phoenix.HTML.FormData.Ecto.Changeset, index: 0, name: "product[variants][0]", options: [], params: %{}, source: #Ecto.Changeset<action: nil, changes: %{}, errors: [title: {"can't be blank", []}, description: {"can't be blank", []}, price: {"can't be blank", []}, purchase_url: {"can't be blank", []}], data: #Ap.Variant<>, valid?: false>}
(ap) web/templates/admin/product/variant_fields.html.eex:25: anonymous fn/1 in Ap.Admin.ProductView.variant_fields.html/1
(phoenix_html) lib/phoenix_html/form.ex:274: anonymous fn/2 in Phoenix.HTML.Form.inputs_for/4
(elixir) lib/enum.ex:1184: Enum."-map/2-lists^map/1-0-"/2
(phoenix_html) lib/phoenix_html/form.ex:272: Phoenix.HTML.Form.inputs_for/4
(ap) web/templates/admin/product/variant_fields.html.eex:1: Ap.Admin.ProductView."variant_fields.html"/1
(phoenix) lib/phoenix/view.ex:335: Phoenix.View.render_to_iodata/3
(phoenix) lib/phoenix/view.ex:342: Phoenix.View.render_to_string/3
(ap) web/views/admin/product_view.ex:11: Ap.Admin.ProductView.link_to_add_variant/0
(ap) web/templates/admin/product/form.html.eex:155: anonymous fn/2 in Ap.Admin.ProductView.form.html/1
(phoenix_html) lib/phoenix_html/form.ex:236: Phoenix.HTML.Form.form_for/4
(ap) web/templates/admin/product/form.html.eex:1: Ap.Admin.ProductView."form.html"/1
(ap) web/templates/admin/product/new.html.eex:7: Ap.Admin.ProductView."new.html"/1
(ap) web/templates/layout/admin.html.eex:23: Ap.LayoutView."admin.html"/1
(phoenix) lib/phoenix/view.ex:335: Phoenix.View.render_to_iodata/3
(phoenix) lib/phoenix/controller.ex:642: Phoenix.Controller.do_render/4
(ap) web/controllers/admin/product_controller.ex:1: Ap.Admin.ProductController.action/2
(ap) web/controllers/admin/product_controller.ex:1: Ap.Admin.ProductController.phoenix_controller_pipeline/2
(ap) lib/ap/endpoint.ex:1: Ap.Endpoint.instrument/4
(ap) lib/phoenix/router.ex:261: Ap.Router.dispatch/2
(ap) web/router.ex:1: Ap.Router.do_call/2
Hi, thank you for open soucing. It would be preferable to have a licence file with the licence of your choosing.
I followed the instalation instructions and I got this error
$ mix phoenix.server
[info] Application sentry exited: exited in: Sentry.start(:normal, [])
** (EXIT) an exception was raised:
** (RuntimeError) environment_name not configured
(sentry) lib/sentry.ex:84: Sentry.check_required_env!/0
(sentry) lib/sentry.ex:37: Sentry.start/2
(kernel) application_master.erl:273: :application_master.start_it_old/4
[info] Application uuid exited: :stopped
[info] Application quantum exited: :stopped
[info] Application bamboo exited: :stopped
[info] Application httpoison exited: :stopped
[info] Application timex exited: :stopped
[info] Application combine exited: :stopped
[info] Application tzdata exited: :stopped
[info] Application hackney exited: :stopped
[info] Application metrics exited: :stopped
[info] Application ssl_verify_fun exited: :stopped
[info] Application certifi exited: :stopped
[info] Application mimerl exited: :stopped
[info] Application idna exited: :stopped
[info] Application cloudini exited: :stopped
[info] Application quintana exited: :stopped
[info] Application folsom exited: :stopped
[info] Application bear exited: :stopped
[info] Application comeonin exited: :stopped
[info] Application postgrex exited: :stopped
[info] Application db_connection exited: :stopped
[info] Application connection exited: :stopped
[info] Application phoenix_ecto exited: :stopped
[info] Application ecto exited: :stopped
[info] Application poolboy exited: :stopped
[info] Application decimal exited: :stopped
[info] Application gettext exited: :stopped
[info] Application cowboy exited: :stopped
[info] Application cowlib exited: :stopped
[info] Application ranch exited: :stopped
[info] Application phoenix_html exited: :stopped
[info] Application phoenix_pubsub exited: :stopped
=INFO REPORT==== 19-Oct-2016::08:59:35 ===
application: logger
exited: stopped
type: temporary
** (Mix) Could not start application sentry: exited in: Sentry.start(:normal, [])
** (EXIT) an exception was raised:
** (RuntimeError) environment_name not configured
(sentry) lib/sentry.ex:84: Sentry.check_required_env!/0
(sentry) lib/sentry.ex:37: Sentry.start/2
(kernel) application_master.erl:273: :application_master.start_it_old/4
The solution was to copy this block from config/prod.exs to config/dev.exs and change the environment_name to :dev
config :sentry,
use_error_logger: true,
environment_name: :prod,
dsn: System.get_env("SENTRY_DSN"),
tags: %{
env: "production"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.