Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
What's first thing to do in MVC pattern? In CodeIgniter, we're supposed to build Model first, then Controllers but I've read somewhere build first View.
So, building MVC app: What I need to build first, What modules I need (Using Express.js framework)?
Thanks <3
As a beginner it is common to have issues like these. Well like most of the frameworks node.js also has models,views and controllers.
You can build your models using mongoose(No sql) https://github.com/Automattic/mongoose
or sequalize(for mysql/postgesql etc) http://docs.sequelizejs.com/en/latest/
for views node.js supports templating engines like jade and ejs
and as you already know you may put your business logic in controllers
Here is a detailed example to get you started http://scottksmith.com/blog/2014/05/05/beer-locker-building-a-restful-api-with-node-crud/
hope it helps :)
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
Meteor.js integrates well inside a Mantra.js architecture, but does it have advantages since it slows the running of my requests.
For instance a dummy request in GraphQL (get a random string from the server) runs in few ms using Apollo Client and 1 second and more using Mantra.js (exact same request wrapping Apollo stack).
It only depends what kind of project you want to work on.
Mantra.js is an architecture framework for Meteor.js, that means :
it helps a developer to follow the creation and development of its modules corresponding to the Mantra framework. The developer is free to use any kind of front-end library he/she wants, any Data Query and Client caching he wants, but in my opinion, it doesn't really improve the quality of the code. Someone can organize a project with own rules and it can be maintainable easily.
So if your team is comfortable with your code structure you definitively don't need something like Mantra.js.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Recently I attended a presentation of SPA/API/Nodejs, it looks good, so I start to google a lot and try to figure out, but get confused more.
It seems that in a SPA website, when use click, for example, a user's profile, it will call some API like http://example.com/profile/username and get a JSON data and will be displayed.
And I found a lot of frameworks, express.js/meanjs/Mojitojs/angularjs/reactjs and so on. really get lost.
So I'm going to develop a website, which will not be a SPA, but I really like Nodejs, so I'll use nodejs and i also like the idea of API to get data and display.
Can you recommend some framework to start?
SPA Frameworks: AngularJS, React.js
Node.js Webserver frameworks: Express.js, Meteor, Sails.js
You can also check Yeoman generators which help you to create a project skeleton.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
If we are running two different node instance one of each purpose( webservice engine/data engine and webservice consumer) will it be good or keeping both the purpose in same application will be better ?
Yes it is.
One project is your API, the second project is the access to your API by web.
Maybe in the future you might need a mobile app to connect with the API or maybe the webapp technology becomes obsolete and you might need to replace it for another modern technology, so that you don't have to change your API.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I want to build a web application which provide a some kind of analysis service.
I hope to build the back-end with PHP or JavaEE which supports RESTful API.
For front-end I want some framework to use light, easy for development/learn, ... etc.
I heard about AngularJS or ExtJS. which is better?
It depends with your expectations. But seems more suitable choice for you AngularJS.
May be you should do some research around..
This is bit fare comparison.
But Even in that article something are seems wrong. (Ex:- he said angular is harder to understand, for me it's not). So, you'll be finding more of opinion based answers.
Best thing is after doing some reading try to use both of them, then you decide what to use.
Anyway, AngularJS will be better if you are looking for opensource/free framework.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am going to start developing a web based application which will work like CMS. I intend to use Entity Frame Work to build my application's DAL.
I don't know what is the best pattern which I should use to build this kind of application. I also don't know about EF patterns which are considered as a best practices in world wide.
Please let me know where to start and what should be implemented to develop this application.
Start with these:
Basic Entity Framework Architecture Choices
Example of the using Entity Framework in ASP.NET MVC