Real time application with CakePHP [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm currently have an app built with CakePHP, it's a fantasy football site. However, I built the draft platform really poorly, it's essentially javascript on a timer that just updates the the view every few seconds.
I've been looking into Firebase + Angularjs for doing the draft in real time but I don't really understand Firebase in depth. It just stores everything as JSON? Which I don't think would be the right path since a relational database helps a lot with having a list of players, stats, plus teams that have associations to the players, different leagues, etc. Unless firebase can be made to work with a relation database, I'm not sure if it's for me (Or I could just have a poor understanding of it).
What are some other technologies that might be helpful with real time data? I've looked at node.js, pusher, and socket.io but I'm not sure which one would play the best with CakePHP.

You can perfectly fine using CakePHP and a relational DB to serve JSON and act as a RESTful backend and use AngularJS as frontend.
Socket.io is a completely different approach as it uses Websockets and not REST. You would have to implement a Websocket server using Ratchet with CakePHP.
I recommend you to learn about the different technologies first and then make a decision.

Related

Trying to create a real-time shared browser app using web technologies/languages [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I recently came up with a fun (but difficult) side-project idea for a browser instance that can be shared across multiple people. Essentially, you share the same browser session with you and your buddies, and everyone can see and perform the same actions that you would normally be able to do alone. In this case however, the changes affect everyone (Ex. closing a tab for you closes the tab for everyone, everyone watches the same YT video).
All in all, the process will go something like this.
I open the browser (session)
I send a unique link provided by the browser session to my friend
My friend opens the link and is led to the same browser session as me
We both have a real-time view of each other's browser and can perform various actions that reflect to all party members
The specific session ends when all the users leave the session (or something like that)
Remind you of something? Hint: Zoom
Being a web developer, something like this seems like a project that would involve mainly backend work which I not too familiar with. Chromium seems like a good open-source option to code with for the actual browser but the session sharing features seem a bit daunting. I could create a basic browser from scratch or make it into a chrome extension like Netflix Party but there obviously has to be a backend somewhere, somehow.
Would love to hear some opinions from you guys. Thank you!
Very interesting side project to improve your skills. I think I would go for WebRTC. WebRTC provides the API and protocols for P2P connections. The users can send and receive events realtime through browsers.
If you want to control the party with a central server, you might want to use WebSocket.
With a simple toy project on the textbook I tend to lose the motivation to complete learning the whole technology. But your project seems to be quite challenging. It will be fun to learn all these technologies for sure! Happy coding!

Which one do I choose [closed]

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'm about to create a web application first but even though I manage the development with rails, graph and react. should I use python thinking more in the future of the application, if it grows in time? Or if you know about a technology stay first with it for development and then migrate?
Couple of option you can choose for web application
Use GRAND Stack : GraphQl +Reactjs + Apollo server+ Node js + Neo4j(instead of this use any other database which you are comfortable)
If web app event based : Then user Nodejs as server-side technology (MERN)
If web app as Data-computation/ Algorithms solution : then Go we React(Front end) +Nodejs(orchestration/ Middle layer) + Python(application layer/or back-end )+ any DB
Yes, i say every framework is good enough, in the long run every thing comes down to one question, how efficient code did u write?
Django
You can use django if you are interested in python. It is a famous framework which has its own ORM and many security built in features another option is flask
I will share my experience.
Recently, coded a website in laravel 5.5, at first everything was fine but when the number of user(s) grew to >50k. The site became slow and my servers showed 100% cpu usage. Later i changed the code, tried to remove nested loops, optimized my queries and used cache technologies like memchached. The site is working fine now.
i hope that answers your question.
I hope the best for you,
Happy Coding

Which kind of servers are for VueJS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I know VueJS is a side server rendering (SSR) technology, so, which servers are for this framework? Can you give some examples?
You've got a lot of things mixed up, so I strongly suggest you go through the entire documentation. VueJS is a client-side application framework, like React, Ember, Backbone, etc.
Server-Side Rendering is just one of the features that VueJS comes with, which basically means that a server will pre-generate the HTML with the data prepopulated instead of making the user fetch all its parts and assemble them in the browser (which is way slower, and way worse for SEO). If by "what kind of server" you mean what type of language the SSR compilation runs in, it's Node.JS.
Good luck! There's a lot of terminology.

How can i develop mobile and desktop applications using html, css and javascript? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
After research i made on the web, i found two frameworks: for desktop development - electron and for mobile development - ionic
Are above platforms recommended choices for mobile and desktop development with web technologies? If not which frameworks should we use for this purpose?
There is few technologies regarding to your question. Cordova-PhoneGap-Ionic (they rely on Apache Cordova) applications are running on WebViews. This means there may be performance issues if you use them for some goals, for example hard calculations. By the way you can still use native functions via Cordova Plugins too.
Also there are NativeScript and ReactNative too. With these technologies, your applications are running on native environment. It looks like these technologies are trending now.
You have a bunch of different possibilities, for instance OnsenUI, Kendo, Ionic (1 or 2), etc. I would recommend you to spend a bit of time to understand which one is better for your needs, even though I would say that Ionic is pretty popular now.
This page is a good start to have an overview of a few popular ones with a short review. http://www.gajotres.net/best-html5-mobile-app-frameworks-ionic-review/ Please note that Framework7 is not in the list, but might be worth mentionning (but I feel more iOS oriented).
Your question is specific about HTML, CSS and Javascript. But as a side note, please do not forget that you might have other options as well as suggested above (ReactNative, Xamarin with C#...) You may check: http://noeticforce.com/mobile-app-development-cordova-vs-react-native-vs-xamarin

server side framework [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm building a large web application with a lot of JavaScript and jQuery (ajax is also inside). There will be a database too with several tables and I use mySQL to manage it.
My question is which server side framework should I use. Right now I consider Rails and Node.js with libraries.
I am aware that there are couple of similar questions on stackoverflow but all of them are quite old. I assume that over a year or two things may change.
If you are building a large application with a lot of javaScript, I am assuming that you have a good understanding of the language. My advise is to stick to javaScript.There are a lot of good javaScript frameworks that are pretty good and can handle large application. Some of the Frameworks you can use are AngularJS, EmberJS and BackboneJS(the most popular). And with the MEAN stack(Mongo, Express, Angular & Node), which is a Fullstack javaScript framework, it will accelerate your workflow.
It really is up to you what language or framework you want to use. You can use rails if you want to delve into ruby or if you like JS everywhere use node. If you want to stick with PHP you could use cakePHP. A lot of the frameworks are similar in that they follow MVC design. All your tables for models, views, and controllers would follow similar conventions in each framework I'm guessing. If you are already good with a language I would just stick with that then branch out if you are pressed for time. You can't really use PHP code with Rails or Node or at least it's uncommon.

Categories