ineedthis / phoenix-starter Goto Github PK
View Code? Open in Web Editor NEWA kickstarter for the Phoenix Framework.
License: MIT License
A kickstarter for the Phoenix Framework.
License: MIT License
I'm trying to get hands dirty with this but I'm getting following error -
$ mix ecto.setup
==> setup (compile)
'c:/Users/ramus/.mix/rebar' is not recognized as an internal or external command,
operable program or batch file.
ERROR: Command [compile] failed!
** (Mix) Could not compile dependency :setup, "escript.exe "c:/Users/ramus/.mix/rebar" compile skip_deps=true deps_dir="e:/apps/phoenix-apps/myproject/_build/dev/lib"" command failed. You can recompile this dependency with "mix deps.compile setup", update it with "mix deps.update setup" or clean it with "mix deps.clean setup"
I'm not sure how to take this forward. I'm on windows and using git bash shell
Hi, I have tried to run mix deps.get and get the following error regarding deps/lager:
➜ phoenix-starter git:(master) ✗ mix deps.get
** (Mix) Command "git clone --no-checkout --progress "git://github.com/basho/lager.git" "/Users/dara/Sites/phoenix-starter/deps/lager"" failed
➜ phoenix-starter git:(master) ✗
When attempting to Sign Up (the retro way) an exception occurs:
My .envrc is unchanged from the example .envrc.
[error] #PID<0.457.0> running PhoenixStarter.Endpoint terminated
Server: localhost:4000 (http)
Request: POST /auth/identity/callback
** (exit) an exception was raised:
** (ArgumentError) argument error
(stdlib) :ets.lookup(:exometer_2, [:phoenix_starter, :ecto, :query_exec_time])
src/exometer.erl:213: :exometer.update_/2
(phoenix_starter) lib/phoenix_starter/repo.ex:5: PhoenixStarter.Repo.log/1
(ecto) lib/ecto/adapters/sql.ex:227: Ecto.Adapters.SQL.query/5
(ecto) lib/ecto/adapters/sql.ex:183: Ecto.Adapters.SQL.query!/5
(ecto) lib/ecto/adapters/sql.ex:481: Ecto.Adapters.SQL.execute/6
(ecto) lib/ecto/repo/queryable.ex:95: Ecto.Repo.Queryable.execute/5
(ecto) lib/ecto/repo/queryable.ex:15: Ecto.Repo.Queryable.all/4
(ecto) lib/ecto/repo/queryable.ex:44: Ecto.Repo.Queryable.one/4
(phoenix_starter) web/auth/user_from_auth.ex:89: PhoenixStarter.UserFromAuth.auth_and_validate/2
(phoenix_starter) web/auth/user_from_auth.ex:6: PhoenixStarter.UserFromAuth.get_or_insert/3
(phoenix_starter) web/controllers/auth_controller.ex:24: PhoenixStarter.AuthController.callback/4
(phoenix_starter) web/controllers/auth_controller.ex:1: PhoenixStarter.AuthController.action/2
(phoenix_starter) web/controllers/auth_controller.ex:1: PhoenixStarter.AuthController.phoenix_controller_pipeline/2
(phoenix_starter) lib/phoenix/router.ex:261: PhoenixStarter.Router.dispatch/2
(phoenix_starter) web/router.ex:1: PhoenixStarter.Router.do_call/2
(phoenix_starter) lib/phoenix_starter/endpoint.ex:1: PhoenixStarter.Endpoint.phoenix_pipeline/1
(phoenix_starter) lib/plug/debugger.ex:93: PhoenixStarter.Endpoint."call (overridable 3)"/2
(phoenix_starter) lib/phoenix/endpoint/render_errors.ex:34: PhoenixStarter.Endpoint.call/2
(plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4
Is it possible to run this boilerplate without "foreman"? I assume standard config files are working fine, but I've got error after mix ecto.setup
Generated csvlixir app
==> oauth
process_begin: CreateProcess(NULL, rm -rf ebin/*.beam, ...) failed.
make (e=2): Nie mo┐na odnalečŠ okreťlonego pliku.
make: *** [clean] B│╣d 2
==> phoenix_starter
** (Mix) Could not compile dependency :oauth, "make" command failed. You can recompile this dependency with "mix deps.compile oauth", update it with "mix deps.update oauth" or clean it with "mix deps.clean oauth"
would be nice to have an example using the api scope for this project too
Despite the browser flashing confirmation, toggling "admin" using ExAdmin doesn't save the :admin state for the selected user. Reproducible for users created inside ExAdmin or through the front end.
Could this be because the user making the change inside Exadmin also needs :admin privlidges? Then we're faced with a chicken/egg situation where the only way we have an admin user after a clean install would be through seeding it.
In the What is up with Foreman and ENVRC? section text is used instead of test...
$ source .envrc
$ mix text
should be...
$ source .envrc
$ mix test
I will submit a very small PR for this ;)
not sure if this is by design, a "feature" of live reload
but when I run this repo and check the source in Chrome Developer mode I see scss files in the source tree under web/static/css
I find this confusing I must say and am trying to turn this off
Add Envy to project instead of manually loading .envrc file everywhere.
https://github.com/BlakeWilliams/envy
A simple Elixir library to load environment variables from .env and environment specific env files like .env.dev, .env.test, etc.
I'm trying to compile this but keep running into an error saying that I don't have proper user permissions to create an extension. I haven't had any troubles using the default postgres/postgres settings in other apps. Any suggestions for how to get the db user working in localhost would be helpful.
`09:55:34.800 [info] == Running PhoenixStarter.Repo.Migrations.CreateUser.change/0 forward
09:55:34.802 [info] execute "CREATE EXTENSION citext;"
** (Postgrex.Error) ERROR (insufficient_privilege): permission denied to create extension "citext"
EDIT I was trying to use a db user with insufficient permissions, and calling System.get_env("USER")
where necessary got everything working again.
I see you have a bunch of tasks around user management etc
have you looked at Coherence? seems like Coherence and ExAdmin will work well together
but havent seen an example of Uberauth + Guardian + Coherence + ExAdmin
seems thats pretty much whats needed
Any possibility of seeing a Phoenix 1.3 version of this? That'd be amazing.
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.