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
I am doing a restructuring because there are a lot of bugs in my app. I have come to the point where i am very confused whether I should either drop AngularJS or ASP.Net MVC. Does anyone have any suggestions?
Problem now is i think we use CSHTML files, and from what i have heard, angular can't read cshtml files to route. I have tried to use ASP.net to navigate from views, but in reality shouldn't i rather use Angular Routing? If so why should i continue with ASP.Net MVC? I could hack it, but i feel that if i continue hacking my way around it will be hard to maintenance code and develop new features.
It depends on the type of application you are working on mainly Angularjs is used in developing well structured Single based applications (SPA) using MVVM pattern.However,your project can combine both angular and Asp.net MVC which is called in this case Mini SPA application where each cshtml may contain many angular views routing inside same page will use angular routing while routing between different cshtml (MVC) pages will use MVC routing.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
We have an existing website, it's written on Flask Jinja and we want to move to Angular 2+. The problem is this that site is currently used and it's under development too, and if we want to add or change something in old site, we will have to do it twice in the existing version and in the new version with Angular 2+. Is there a way to partially add angular for some pages in an existing project? Something like this with React.js https://reactjs.org/docs/add-react-to-a-website.html#optional-try-react-with-jsx
I havn't had any experience using Flask Jinja, but it seems like it's just a server-side template engine.
That wouldn't prevent you from placing a Angular app on a template. You should to able to create an angular app, and then bootstrapping the custom <app-root>-element in the template. I would just create a sample Angular app, build it and take the contents of the index.html-page (in the dist-folder) and incorporate it into a Flask Jinja template.
You may face issues if using the Angular router, since you wouldn't be making a SPA - but stearing clear of that, you'd be fine.
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 2 years ago.
Improve this question
I am building a web application with Django and I show the graphs in the website. The graphs are obtained from real time websites and is updated daily. I want to know how can I send graphs using matplotlib to template and add refresh option with javascript which will perform the web scraping script which I have written. The main question is which framework should I use? AJAX, Django REST, or what?
You're better off using a frontend framework and calling the backend for the data via JS. separating the front and backend is a more contemporary approach and has some advantages over doing it all in the backend.
From personal experience, it gets really messy mixing Python and JS in the same system.
Use Django as a Rest-ful backend, and try not to use AJAX in the frontend, then pick a frontend of your choice to deliver the web app.
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 :)
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
I am developing a RoR app. I am confused whether to develop an API in rails app and separate web app using different javascript frameworks.
Reasons: Am a beginner in ruby on rails. Unable to customize views using frameworks like Polymer. (Found few gems, but I feel like its easy with normal web app).
So I need your suggestion in deciding whether to develop api with rails and interact with it using a separate web app(HTML5 and JS) or complete project in rails (if so then please suggest me some useful gems in designing beautiful views)
PS. I also want to develop API because mobile apps gonna interact with it.
If you're gonna do mobile applications, use rails to build an API.
It's easy to render json with rails, so it's powerful to build an API that you'll be able to use in web with JS framework (like angularjs) and for mobiles applications.
See here for how to render json : http://guides.rubyonrails.org/layouts_and_rendering.html
Hope it help
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
We have an existing Rails 3.1 consumer-facing web app and are reworking the UI to be far more interactive, snappy, app-like.
We have a modestly complex data model, but there's only a modest need for form-based user input.
We use jQuery now, with plugins to do nice effects, but overall, our JS skills are weak.
Our primary objective is to find a framework that helps us structure and organize our JS code and simplify the cases where we do have data bindings, AJAX, etc. in our Rails 3.1 world.
We'll learn how to do JS properly, but while we do, is there a clear framework we could learn and work within?
I don't know Dojo, but Backbone vs Knockout is a bit like comparing apples to oranges.
Backbone provides a structure for a web application + synchronization with the backend, whereas Knockout drives UI updates. There is some overlap between the two, but it doesn't mean they are actual competitors. There is even a project that tries to combine both - Knockback.
Last but not least, there is a great discussion on Bb vs Ko.
EDIT: I've just found this: http://addyosmani.github.com/todomvc/ - a comparison of different approaches to creating the same TODO app.