petecorey

petecorey

Basic Meteor Authentication in Phoenix

Hey all,

I’m coming (most recently) from a Meteor background. This means that much of my current interest around Elixir and Phoenix come from exploring how I can integrate them with existing Meteor applications.

I recently wrote up an article on basic integration with Meteor’s Accounts system to do Meteor-style authentication in a Phoenix application. It’s definitely very simple and feature-poor at the moment, but I think it’s a good diving off point for anyone looking to do this kind of thing.

Hopefully this helps some former (or current) Meteor developers out there, or any Elixir developers looking to work with MongoDB.

First Post!

OvermindDL1

OvermindDL1

I’m curious, can you give a quick synopsis of meteor? It is not a thing I’ve looked at yet and the immediate main website is unrevealing (blehg). What does it handle, what is its syntax and structure like, etc…?

Most Liked

Morganjackson

Morganjackson

@petecorey another awesome post!

Have you looked into shared login between a phoenix and Meteor application? i.e user logs into Meteor application which persists when navigating to the Phoenix application?

Mandemus

Mandemus

Iirc SkinnyGeek1001 in the above thread has a few example projects with Meteor and Phoenix integration.

petecorey

petecorey

No more insecure than any other stack. It just uses a pub/sub model to push data to the client instead of explicitly fetching it. The client-side “Minimongo” is just a glorified client-side cache.

Where Next?

Popular in Discussions Top

New
sergio
There’s a new TIOBE index report that came out that shows Elixir is still not in the top 50 used languages. It also goes on to call Elix...
New
AstonJ
If so I (and hopefully others!) might have some tips for you :slight_smile: But first, please say which area you’re finding most challen...
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
tomekowal
Hey guys! I want to create a toy project that shows a chart of temperature over time and updates every 5 seconds. I feel LiveView is per...
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
AstonJ
Can you believe the first professionally published Elixir book was published just 8 years ago? Since then I think we’ve seen more books f...
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
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
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
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
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
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New