Coder Social home page Coder Social logo

Template files about mean HOT 7 CLOSED

linnovate avatar linnovate commented on July 16, 2024
Template files

from mean.

Comments (7)

liorkesos avatar liorkesos commented on July 16, 2024

Hi
Basically mean consists of 2 MVC platforms - the first which is implemented is related to the server side code (node.js/express) and it's is implemented in the app/views andthe second one is angularjs's MVC and it's code recides in public/views.
So youre clientside views go in public/views and the views created by node go in app/views

from mean.

avanderpluijm avatar avanderpluijm commented on July 16, 2024

Thank you, so why are the user pages server side? You could see them as clientside, or not?

from mean.

liorkesos avatar liorkesos commented on July 16, 2024

Sure you can but basically the idea is that some of the pages are delivered through nodjs and contain the reference to angular.
The core pages act that way and are (currently) dished out by node and templated by jade so you can see pages like sign.jade which act this way.

from mean.

avanderpluijm avatar avanderpluijm commented on July 16, 2024

I understand. I am trying to understand what the rationale is for some pages through node and others through angular, how do you make the distinction.
I guess this issue can be closed since there are are already two others.

from mean.

greggh avatar greggh commented on July 16, 2024

This is definitely a question I had too.

from mean.

amoshaviv avatar amoshaviv commented on July 16, 2024

First of all thank you for your comments.

One of mean main concepts is to use popular existing modules and frameworks for familiarity reasons, one of those modules is passport for authentication, passport uses oauth to authenticate so the entire login process need at least two views, of course I would of preferred to use nodejs solely as a REST machine, but for now we have to stick to the passport model.

from mean.

kcrwfrd avatar kcrwfrd commented on July 16, 2024

@amoshaviv I had the same desire and I'm trying to figure out a solution–see #121. I would appreciate any feedback!

from mean.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.