UI app on Node.js and api using Django REST - angularjs

I have found this amazing AngularJS based template that I would like to use, which currently is build to be launched as a Node.js application and then there is a ton of data that I have in a dozen tables that I am planning to wrap with a Django REST framework.
Eventually the UI application would communicate with the Django REST framework. Do you think this is a good idea. Or should I just stay on one of the frameworks? I would like to hear both pro's and con's from people with expertise on both the frameworks.

Related

Frontend frameworks vs Backend frameworks

As someone just started in web development, I was constantly bothered with these terms and really hoping someone could explain some of my questions for me.
What is the major difference and similarities between frontend frameworks and backend frameworks?
Can I use both in one web project or does they conflict? (Never seen a project that use both front and backend framework).
If one project only need one framework, then why are some named frontend frameworks some named backend frameworks.
Currently I'm more familiar with Django, a backend framework and in Django, and In Django development, frontend becomes basic html and css, though I was expecting something fancier (something like react components)
Never used a frontend framework in project or work. So how does backend stuff work in a frontend framework project?
Any answers would be helpful 🙏🏻
Yes, you can use both a frontend and a backend framework on the same project.
Some backend frameworks, such as Adonis.js, Django or Spring, offers you a template engine (I believe this is the one you are using with django https://docs.djangoproject.com/en/3.2/topics/templates/) which can be great for simple pages. But as you said, some times you need more complex features, in this case a frontend framework would come in hand (such as React.js or Vue.js).
In this last case, you could have two separate code bases that change information through an api. In my experience I always prefer to have a frontend separated from the backend, this way its easier to maintain the codes and you can use the same backend from multiple clients, lets say and website and a mobile app.
I completely agree with Pedro - you can use frontend and backend frameworks when building the same software / app / website.
If you want to build a complex project, I think Vue.js will be a perfect choice. However, recently I have noticed an increased interest in developing digital products with React Native. To be completely honest, I don't have much experience with this framework, so I can't tell you whether it's a good choice. If you would like to check the best development frameworks, this piece of content will tell you everything you need to know: https://www.miquido.com/blog/the-best-frontend-development-frameworks/
Yes you can both frontend framework and backend framework at the same site.
the benifit of using backend framework includes Security, uniqueness, scalability and the benifit for using frontend framework includequicker prototype, standardized, more efficient and reliable

SPA behaviour for an existing Play Framework webapp

We have a complex webapp built in Play Framework (1.*) and we want to move towards a SPA behaviour for it. What JS framework would you recommend for this? Most of the business logic is on the server side (Play controllers).
What would be the pros or cons of using AngularJS or ReactJS, or maybe other framework. How easy would be the integration?
Take a look at the act framework at http://actframework.org/, an ex play one that decided to take action, his video for a Rest Service is very impressive: https://www.youtube.com/watch?v=B2RRSzYeo8c
From my experience , I can recommend the following :
Indeed, You will have two applications :
SPA application : Based on reactjs framework with redux .
API application : You can any of the famous framework grails , express, laravel , ruby-on-rails ...etc.
I don't recommend to use Angular, ReactJS is more powerful for many reasons : namely virtual-dom
You can use still Play 1.x as back-end, by converting controllers methods into web-socket events or more simple REST (checkout jersey module, also for inspiration).
After you can make interacting UI HTML SPA based use ReactJS or VueJS (I prefer the second, better separation concerns and better performances).

Web MVC framework for bridging front-end access to Go-lang back-end REST API

I want to use ReactJS for the front-end and Go for back-end. But both of these technologies is not a web mvc framework.
What mvc framework can i have to use to provide capabilities like routing an accessing the backend Go API?
You can use reactjs and go together, and many people have. You may want to check out something like this go react starter kit although that seems pretty complicated.
MVC is not really a thing you hear about terribly often in go apps. You really just need a rest api that exposes your data. You can build that with the standard library, or use a simple framework like gorilla.

Grails - Ionic - AngularJS - Is it a good idea to work in this Env.?

I want to create an application using Ionic and AngularJS and Grails?
Also, I want to use Grails Spring Security Core plugin for login or registrations procedure.
Although, Stack Overflow is not the correct site to ask this type of questions which simply needs suggestions and other's opinions.
Well, we are here to help. You can try other StackExchange sites like https://softwareengineering.stackexchange.com/.
Grails + Ionic + AngularJS is a perfect combination of frameworks to build a fully functional and elegant mobile application for all platform. We've build various mobile applications using these three technologies and they work awesome.
Since Grails fully support the concept of rest API for JSON and AJAX based calls, it is absolutely possible to use it along with AngularJS. AngularJS doesn't care about the server-side technology you are using as long as your server side code can communicate over JSON data.
Ionic is just a beautiful front-end SDK which works on the top of AngularJS and provides various utilities to develop a hybrid user-friendly mobile APP.
So you can easily use these 3 technologies and get your mobile app ready in a few weeks.
Ionic doesn't care about what you use as a server stack. As long as you create a service which has well defined interfaces (REST?), you should be fine.
I for example use PHP (yeah, I know, shocking, right?) Slim framework + Postgres database as my backend.

Should sites like ebay and amazon use frontend frameworks like angular js or vue js?

I'm thinking about upgrading my site. It's a trade place a lot like ebay.com.
My site is build in Laravel 5.1, but without any front-end framework. Because of that, I was wondering if it made any sense to use a front-end framework like angular js?
Pros and cons please.
I don't know that much about angular js, but if I convert my laravel application to fully obey the REST principles, i'm also well suited for building an iOS-app when that time comes???
http://tilsalg.dk - Link to my site
I don't know whether it is suitable to use angularjs for this purpose. The problem is as far as I am concerned, that website which are written in javascript (so angular) can not be indexed well by SEO's. I'm hearing a lot that Google can index it but I'm a little sceptical about this. For a trading website like ebay it's very important that the site is SEO optimized. Of course if you use REST principles you can always change the frontend and that is also the way to do it.

Resources