Comments (4)
Sorry about that, perhaps I missed something in the recent umbrella refactor. Can you try the following?
cd apps/domain
mix ecto.reset
Then try to login again.
from peap.
@akeating Thanks for quick answer. Now it works! Just one more question.
In apps/, it is separated to domain and interface. I thought it is divided as backend(phoenix) / frontend(angular2). If this is right, why mix.exs and other files for phoenix are exists in interface directory? Is there some other reason, or am I misunderstand something?
Thanks.
from peap.
Ah, well spotted. The interface
directory contains a phoenix application and the domain
directory contains a plain elixir
application. The phoenix application is modified to support everything you should need for developing with angular 2.
I structured it this way in response to some thoughts shared in various forums. Some references you might take a look at include:
http://www.elixirconf.eu/elixirconf2016/lance-halvorsen (take a look at the video)
https://elixirforum.com/t/phoenix-is-not-your-application-questions/735 (discussion)
https://elixirforum.com/t/how-important-is-the-phoenix-is-not-your-application-mantra/1886
https://confreaks.tv/videos/elixirconf2016-keynote
Essentially, the idea is to separate the interface from the reset of your business logic. Chris McCord also expressed his thoughts about phoenix 1.3 which may change this structure some more when that is released. I kind of like the idea and I will continue to evolve this sample application as my assessment of best practices changes.
from peap.
@akeating Thanks! I'll look on it.
from peap.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peap.