yumm

yumm

ecto usage in example projects?

Hi all! I’m new to elixir and phoenix and am trying to run this project:
https://github.com/chvanikoff/reph2

I want to convert an existing react app (or at least the rest api for the database to elixir but every example project I find on Github has some sort or error regarding ecto. I’ve tried all the examples posted in https://forum.elixirforum.com/t/user-authentication-in-phoenix/118/81 but encounter similar errors to this:
could not compile dependency :phoenix_ecto, "mix compile" failed. You can recompile this dependency with "mix deps.compile phoenix_ecto", update it with "mix deps.update phoenix_ecto" or clean it with "mix deps.clean phoenix_ecto"

I’ve tried cleaning all my mix packages as well as mix.update --all.

Are all these projects just dead or am I missing something?

Also if anyone has suggestions of a working example of a elixir server with authentication (ideally with react as well) please do hesitate to share.

Thank you to the elixir developers I can see the magic in the bottle but still feel like I’m taping on the glass.

Thank you for any/all suggestions/ideas/setting me straight

Most Liked

yurko

yurko

This one seems to work, I’ve just tested it locally GitHub - chernyshof/react-phoenix-users-boilerplate: Elixir/Phoenix + React + users template/boilerplate. · GitHub and it uses Phoenix 1.3

One thing to note is that you’d have to use admin@admin.com and not just admin as stated in the readme in order to log in.

yurko

yurko

Yes, you need postgres and then you need to set up the connection, edit your dev config and set up username, password etc, s. react-phoenix-users-boilerplate/config/dev.exs at master · chernyshof/react-phoenix-users-boilerplate · GitHub

Your local database doesn’t have to be secure unless it’s open to the outside world. If you want to set the password you can do something like this:

sudo -u postgres psql
ALTER USER "postgres" WITH PASSWORD 'new_password';
NobbZ

NobbZ

Even though I can compile the dependencies on my system (Arch linux), it fails currently with the router and prints out about a billion of warnings.

Also the particular example you posted is written in phoenix 1.1, so it will give you a false sense of how things are done today.

You should search for examples that use a more current phoenix (1.3).

Sadly I can’t give you any links to small example projects, but only to a fully grown application: The hex.pm website.

Last Post!

yumm

yumm

@voger your correct. I was able to duplicate my project and use ‘boilerplate_dev’ as database name. please ignore the previous version of this reply as that error was simply due to a node.js server interfering with phoenix.

Where Next?

Popular in Questions Top

Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44608 311
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New

We're in Beta

About us Mission Statement