GithubHelp home page GithubHelp logo

daskycodes / bird_app Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 218 KB

An IoT Birdhouse with Elixir Nerves & Phoenix LiveView Components

Home Page: https://dev.to/dasky/an-iot-birdhouse-with-elixir-nerves-phoenix-liveview-components-5cb2

Shell 0.16% Elixir 88.22% HTML 7.33% CSS 1.55% JavaScript 2.74%

bird_app's People

Contributors

christian-busse avatar daskycodes avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

bird_app's Issues

Problems getting the bird_app_ui to start

Hello Dasky,

Still playing with your bird app code. Have you carried on with the project?
I am having a problem running mix firmware from the bird_app_firmware folder.
Just wonder if you can spot the error.

From the bird_app_firmware folder

$ mix firmware
warning: Phoenix now requires you to explicitly list which engine to use
for Phoenix JSON encoding. We recommend everyone to upgrade to
Jason by setting in your config/config.exs:

config :phoenix, :json_library, Jason

And then adding {:jason, "~> 1.0"} as a dependency.

If instead you would rather continue using Poison, then add to
your config/config.exs:

config :phoenix, :json_library, Poison

(phoenix 1.5.13) lib/phoenix.ex:38: Phoenix.start/2
(kernel 7.1) application_master.erl:277: :application_master.start_it_old/4

==> bird_app_ui
Compiling 25 files (.ex)

== Compilation error in file lib/bird_app_ui_web/endpoint.ex ==
** (ArgumentError) invalid :json_decoder option. The module Poison is not loaded and could not be found
(plug 1.13.1) lib/plug/parsers/json.ex:45: Plug.Parsers.JSON.validate_decoder!/1
(plug 1.13.1) lib/plug/parsers/json.ex:32: Plug.Parsers.JSON.init/1
(plug 1.13.1) lib/plug/parsers.ex:278: anonymous fn/3 in Plug.Parsers.convert_parsers/2
(elixir 1.10.4) lib/enum.ex:2111: Enum."-reduce/3-lists^foldl/2-0-"/3
(plug 1.13.1) lib/plug/parsers.ex:259: Plug.Parsers.convert_parsers/2
(plug 1.13.1) lib/plug/parsers.ex:255: Plug.Parsers.init/1
(plug 1.13.1) lib/plug/builder.ex:334: Plug.Builder.init_module_plug/4
(plug 1.13.1) lib/plug/builder.ex:315: anonymous fn/5 in Plug.Builder.compile/3
could not compile dependency :bird_app_ui, "mix compile" failed. You can recompile this dependency with "mix deps.compile bird_app_ui", update it with "mix deps.update bird_app_ui" or clean it with "mix deps.clean bird_app_ui"
17:51:30~/projects/learn/rvapp/bird_app_firmware (master)

I have run all those commands

And from the bird_app_ui folder I get these errors

$ mix deps.get
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
certifi 2.8.0
cowboy 2.9.0
cowboy_telemetry 0.3.1
cowlib 2.11.0
cubdb 1.0.0
file_system 0.2.10
floki 0.32.0
gettext 0.19.0
hackney 1.18.0
html_entities 0.5.2
httpoison 1.7.0
idna 6.1.1
jason 1.3.0
metrics 1.0.1
mime 2.0.2
mimerl 1.2.0
nadia 0.7.0
parse_trans 3.3.1
phoenix 1.5.13
phoenix_html 2.14.3
phoenix_live_dashboard 0.2.6
phoenix_live_reload 1.3.3
phoenix_live_view 0.13.3
phoenix_pubsub 2.0.0
plug 1.13.1
plug_cowboy 2.5.2
plug_crypto 1.2.2
ranch 1.8.0
ssl_verify_fun 1.1.6
telemetry 0.4.3
telemetry_metrics 0.5.0
telemetry_poller 0.5.1
unicode_util_compat 0.7.0
All dependencies are up to date

17:41:23~/projects/learn/rvapp/bird_app_ui (master)

$ npm install --prefix assets

up to date, audited 909 packages in 8s

40 vulnerabilities (23 moderate, 17 high)

To address issues that do not require attention, run:
npm audit fix

To address all issues (including breaking changes), run:
npm audit fix --force

Run npm audit for details.
17:42:18~/projects/learn/rvapp/bird_app_ui (master)

$ mix phx.server
[info] Running BirdAppUiWeb.Endpoint with cowboy 2.9.0 at 0.0.0.0:4000 (http)
[info] Access BirdAppUiWeb.Endpoint at http://localhost:4000
[info] Application bird_app_ui exited: BirdAppUi.Application.start(:normal, []) returned an error: shutdown: failed to start child: BirdAppUi.DB
** (EXIT) "Options must include :data_dir"
** (Mix) Could not start application bird_app_ui: BirdAppUi.Application.start(:normal, []) returned an error: shutdown: failed to start child: BirdAppUi.DB
** (EXIT) "Options must include :data_dir"
17:43:18~/projects/learn/rvapp/bird_app_ui (master)

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.