0

I am new to web development and I am creating a web app in Vue/Vuetify. When I was looking into ways to load and parse a .csv file I got some errors and further digging on the web said that what I was trying to do has to be done server side, so I assume what I am creating is the client side? Where exactly do I program the things to be done "server side"? Anyone have a good reference where I can learn about this?

j08691
  • 204,283
  • 31
  • 260
  • 272
  • Vue is a client side only library, if you wish to do both there is NuxtJS uses vue & also has server side handling. https://nuxtjs.org/ – Keith Jul 14 '21 at 15:27
  • Somewhat relevant: [What is the difference between client-side and server-side programming?](https://stackoverflow.com/q/13840429) – VLAZ Jul 14 '21 at 15:31
  • If you're about to handle server side yourself, a reasonable choice would be NodeJS, because it shares the same language and some of JS ecosystem, so it takes a bit less to learn to become fullstack dev. As it was said, CSV can be perfectly handled on client side, although challenging if a file is big. – Estus Flask Jul 14 '21 at 15:41

3 Answers3

0

Stuff like parsing CSV files is often on the server side (for example, in your Node.js server code), but it can easily be done in the browser on the client-side, using just a static HTML page and JavaScript file. See https://stackoverflow.com/a/26298948 for how to read and parse a file in JavaScript purely in the browser.

0

the server-side is where is written the business logic of your application core with some language such as Java, PHP, GO, among others. The client-side is the layout of your application. Hence, this kind of process such as parse a .csv file, database interactions, generate PDF files, Authentication, etc.

I suggest learning how to build a REST API and AJAX to consume your API from your client side.

Here is a link to learn about APIs: Introduction to web APIs - Developers Mozilla, there is another link about AJAX: Ajax - Developers Mozilla

Manuel
  • 135
  • 1
  • 8
0

Since you are new to web development, I first suggest you to learn 3-tier application architecture as all of the web applications are based on this architecture. Now once you learned the server side part of the architecture, you should start making small applications which uses server side and the database. Since you are already using Vue.js and hence javascript, you will feel more comfortable using Nodejs for server side programming.

cod3rboy
  • 717
  • 7
  • 9