Laravel 5 and NodeJS [closed] - php

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 battling with myself about the use of Laravel 5 AND / OR NodeJS.
I want to build a webshop where other webshops or stores can sell their products on. NodeJS drops in when a visitor is viewing an auction page and a product has a new bid. It should be visible without refreshing the (product)page. The rest of the website won't need this functionality.
So, 2 backend environments are awkward, right? So should I pick NodeJS, Laravel 5 or should I just use both for this page only?

You can use both of them. their architecture and nature is different. Laravel is a framework with php language that runs per request but node.js is a platform that is best suitable for streaming and realtime. If you want a CMS like website then I suggest Laravel because Development cost and maitenance is better, due to its active community. If you developed that with Laravel, then you can use push notifications to inform your users from new changes or you can use methods like long pulling.

I don't know about Laravel which is a PHP framework but whatever you want to achieve can be achieved using node js with socket io support. You can have realtime updates using socket io. Please check it out. No need to have two frameworks of different language platforms to achieve a single task. And it is wrong to compare socket io(event based communication engine) to Laravel (php web application framwork).

Related

CodeIgniter + SQL Backend + React Based Frontend / CMS? [closed]

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 8 days ago.
Improve this question
I am about to inherit quite an old system that was built with CodeIgniter (not sure which version) and runs FuelCMS on the front-end. I am not overly familiar with FuelCMS, CodeIgniter nor PHP, but my assumption is that there is a SQL database (or series of them) that hold the data, and a number of PHP API methods that handle GET/POST requests to this database.
Ideally, I would want to scrap Fuel CMS, but retain the API methods and SQL database, and write a new front-end to replace Fuel, probably in React or NextJS. An alternative would be to use something like KeystoneJS or Directus.
So my questions to those who understand CodeIgniter are along the lines of:
How straight-forward is it to write something on top of a CodeIgniter system? Either a new API that directly queries the database (in NodeJS) or just a front-end that still uses the existing API.
Are there any off-the-shelf solutions (aside from Fuel) that would perhaps offer either some increases in performance, or additional customisation options? My limited experimentation with Fuel has found it to be quite limited.
Appreciate your help!

Laravel 6 Without Blade [closed]

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 2 years ago.
Improve this question
I have this Advanced Programming assignment building an e-commerce website. I am using Laravel 6. However, the assignment states that the server must be independent of the client, therefore I cannot use blade. Instead all the client-side must only comprise HTML5, CSS and Javascript. How can I go about linking my backend with my frontend? I have tried searching online for an answer but since I'm very new to Laravel, I don't quite understand how to go about this. Could you guys point me the right direction?
What your assignment is asking is to create a restless backend API and frontend to consume it. When you are going to access your site you will be contacting the frontend and then the frontend is going to retrieve what info it needs from the backend and display them to you. Usually, the backend and frontend run on different servers (eg a php server for the backend and node.js for the frontend) but this isn't always the case.
Basically he wants two separate projects the backend and the frontend.
The frontend can be created by using just html-css-javascript or by using react.js, vue.js or any other library for building ui's.
In both cases you will use ajax call to get the info from your backend (in your case the laravel app) to the frontend.
Check this tutorial for building a backend api with laravel.
Check this tutorial for consuming api in html.
Check this tutorial for consuming api with vue.js

Swift/MySQL/PHP: how to write an ios app using an online database [closed]

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 7 years ago.
Improve this question
I have just fineshed an apprenticeship in a little company for which I have developed management web application hosted in ARUBA together with mysql DB. Now for my "Mobile application" course I would like to realize an iOS app as a mobile version for that web application: pratically I could create a new frontend as an iOS app. I am supposed to use Swift and I am totally new to iOS development. So I would like to ask if you can give me some tutorials about how to use swift and php to connect to a database and perform CRUD operations. Before suggesting this idea to my teacher I would like to make some practice and see if I am able to create this kind of app.
What do you say?
This course looks promising, though I haven't done it myself, so I'm not sure.
Think of this project in three parts:
Creating your MySQL database
Developing your PHP API to "talk to" the database - this is the mediator between the client and the database
Developing the client code
It sounds like you've done some web development, so can I assume that you know how to do number 1 and 2 above? You can create the PHP almost exactly like you would for a website, and it has a great function (json_encode) to put everything you're sending to the client in JSON. There is a class called NSJSONSerialization to deal with the JSON received on the client end.
Do know that this is a big project; developing all the PHP and Swift code in addition to the database is no small feat.
To accomplish number 3, I would recommend reading up on NSURLSession. This tutorial and this tutorial may be useful.

What is the way to develop modern php based large scalable web application? [closed]

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 7 years ago.
Improve this question
I want to build a web-application using the php, I have started with CodeIgniter and Smarty. The issue is I came to know opinion about this combination like "framework in 2015?, like a joke", there are so many framework and all the updated and and many more thing like socket and node.js and all which make me so confusing.
I know many thing have there own need and work all the way, but I want to develop a site which will expecting 1-5 million hit monthly and I want it fast and efficient, using core php need to do more work which a good framework can do for you but still not sure what's the best approach to go from here.
Any top PHP framework like Laravel or Symfony can handle websites with so much traffic. If you want to create an API based on PHP and leave front-end to another app like Angular, you may also take a look a Lumen or Slim Framework.
I know it's a broad question but answer is simple, these frameworks give you the tools, as long as you follow modern principles and use caching they will be able to serve that many requests.

How to make web applications look exactly like desktop applications? [closed]

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 9 years ago.
Improve this question
I was wondering if there is a definitive solution for building web applications that looks like desktop applications, for corporative users that are used to windows. I MEAN THE GUI DESKTOP PERSPECTIVE.
Can anyone help me with that? I use PHP.
I am in a group developing an application that will work for a bank, and that must look exactly like an application so the users do not even notice it is a web based one for security reasons (informed by the bank holder).
We have tried to use Java Applet, but it took just too much time to load, as the application is very big.
you can use ExtJs for your front end and php as back-end.ExtJs is a javascript framework for web-application.
http://www.sencha.com/products/extjs/
I can't recommend PHP for anything personally, so here are some others...
Silverlight is a pretty good start. Does that even count as a web app?
http://en.wikipedia.org/wiki/Microsoft_Silverlight
SharePoint is a better alternative, being a Microsoft product.
http://en.wikipedia.org/wiki/Microsoft_SharePoint
On a subjective note, the internet is so pervasive now that just writing a friendly web page should be enough. Everyone uses the internet and can usually figure things out that present the format nicely.
What data will your application be serving? That has a big part in what framework you pick.

Categories