Code Monkey home page Code Monkey logo

ex-shop's People

Contributors

bharani91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ex-shop's Issues

new product errors?

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

Licence

Hi, thank you for open soucing. It would be preferable to have a licence file with the licence of your choosing.

Error when running in dev

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"
  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.