Which kind of servers are for VueJS [closed] - javascript

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.

Related

Can JavaScript be the only language used in a project? [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 7 years ago.
Improve this question
I started learning JavaScript a while back and it didn't take long for me to realize that JS relies heavily on HTML/CSS (there isn't even a way to get an input from the user using just JS unless you use prompt or HTML).
However, I love the language itself and I was wondering if there is any way to have a project run on JUST JS. (Or if there is another language that's language is as beautiful and simple as JavaScript but still has the practicality of Java or C++. I find Python/Ruby's syntax to be odd, sorry).
I know this isn't the usual question here at Stack Overflow, but I'm somewhat new to this and there's no other clear, definitive answer.
You could look at Node.js. Which is a backend server framework that uses Javascript as the language.
But if you want to display user interface code to browsers, you still can't get away from HTML and Javascript.
If you want to interact with an user in a browser, you must need html, or prompts as you said otherwise the user have nothing to do there :).
And If you are looking a way to execute javascript at server side
Look at, node.js that take advantage of V8 JavaScript Engine
Another option is io.js
With Node.js, you can write a project beyond web.

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.

Real time application with CakePHP [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 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.

HTML/JS site templates? [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 a PHP programmer that was just hired to write an interactive ipad app whose requirements are basically that it be a website. So I started setting up to develop a website when I found out that my employer's server has been lobotomized: no dynamic languages, the only things I'm allowed to code with are HTML and JavaScript.
AJAX and jQuery are still in, but as far as I can tell they won't have a server-side language to back them up. If I have an urgent and compelling reason to have an active language, I might be able to convince the senior web guy to give me an exception, but I don't think my project qualifies as urgent or compelling by about two orders of magnitude.
My question then, is what sort of labor-saving devices are out there for HTML/JS only sites? I would have liked to use something like Drupal. Would I be better off writing the whole thing in XCode?
The site will display information regarding a number of historical artifacts in the possession of the library that is my employer.
It would help if you were more specific about your needs (the kinds of things you do in PHP that you don't know how to do with just HTML/JS), but I think I know what you're getting at.
If the site isn't too complicated, a good client-side templating engine is probably what you're looking for. Handlebars.js is a popular choice, but there are tons to choose from. I prefer to use client-jade, but it doesn't matter much. The idea is to define a template (e.g. for displaying one historical artifact), then iterate over an array of data that describes all the artifacts in the library, rendering each element of the array into some pretty-looking DOM with your template.
If you need something more sophisticated than that, you might want a client-side MVC framework like Backbone.js (lightweight, easier to learn, less opinionated) or Angular.js (heavier, harder to learn, very opinionated).
If the labor you're trying to save yourself from doing is styling work, you might want to check out twitter bootstrap (or similar frameworks like foundation). Bootstrap makes it easy to create good-looking navbars, make column-based layouts, and ensure that your site looks good across different browsers and devices.

Persist data on server with JavaScript? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'd like to create a small JS, HTML & CSS-only web application for my personal use with some kind of MVC-framework (like ember.js). My big requirement is that I want to persist the data permanently on the server where I run the web-application.
Is that achievable and what are good frameworks for it?
If something needs to run on the server I want it to be lightweight and easy to setup.
I need to be able to query the data. After a while there will be a few thousand rows in the database. Joins etc. won't be required.
It's highly possible, but you'll need somethign running on the server to swallow the data.
Typically you have serverside code which interacts with your data store to prevent users from manipulating your databases.
You can stick with JSON/Javascript and use CouchDB: http://couchdb.apache.org/.
It allows you to read/write data directly from Javascript, so you don't have to write server side code.
Other ideas to stay in the JSON/Javascript world - you can write from client side to a Node.js machine that writes to Mongo. Pure JSON/Javascript all the way down.

Categories