** (File.Error) could not read file "/home/.my_path/project/lib/project_web/views/../../../priv/static/js/app.js": no such file or directory
(elixir 1.10.3) lib/file.ex:353: File.read!/1
lib/addinteli_website_web/views/layout_view.ex:13: (module)
(stdlib 3.13) erl_eval.erl:680: :erl_eval.do_apply/6
(elixir 1.10.3) lib/kernel/parallel_compiler.ex:304: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/7
That is because, in our view, we expect those files exist to embedded JS and CSS.
The goal of this project is to work as a small and embedded app similar to the phoenix dashboard.
mkdir -p priv/static/{css,js}
touch priv/static/js/app.js
touch priv/static/css/app.css
# then run npm to get assets
npm i --prefix assets
# then create the self-signed credentials
mix phx.gen.cert -o priv/ssl/project
notice if you want to work with self-signed trusted, mkcert is a way to go.