Simple doubt about production of a site

Asked

Viewed 63 times

-1

Guys, I’m developing a website for my first time with HTML + CSS + JAVASCRIPT technologies. I’m facing a lot of challenges, and looking to solve them in the best way possible.

I’m creating this layout.

inserir a descrição da imagem aqui

Where the user data will be placed, each user has their own personal data, so I will call them in an external database that will reach the page in JSON format [links, names, tasks, titles, details, value_de_progress]but I don’t know how much data each User will have. For this reason, it is not something fixed, to solve the problem, passed in my mind to program the layout in javascript, because when the page is executed it will bring the user data and fill.

And I came across the following question:

There is only really this possibility, to make the data appear through javascript?

I’ve been watching youtube as an example because the video suggestions given by it is not a fixed thing, but something momentary that just by updating the page some videos are no longer shown!

I would like more research possibilities, because so far I have not found another way within my research

3 answers

1


Just one remark: I’m considering you’re starting in the area.

For layout, as already mentioned you can use the bootstrap. But if possible try to create everything from scratch as you will understand the frameworks for css much easier.

It also has Javascript databases and is very easy to use. Perhaps it would be even more advisable for you. But nothing prevents you from using php or nodejs to communicate with Mysql and Postgresql for example.

Here are some suggestions from banks in js: (If I’m not mistaken some Wash the data in files)

  1. https://agnostic.github.io/LocalDB.js/
  2. https://pouchdb.com/
  3. http://taffydb.com/
  • Okay, I’ll take a look, but yes, in this project I’m developing I’m making from scratch a lot of things, I’m already a programmer in other languages

1

Good morning,

Dude, I don’t think it’s the only way that there is, because there are so many ways to do the same thing. But for all I have known, this part using Javascript ( mainly with the help of Jquery ), would be your best option. Precisely because you can make the call of this data through the use of AJAX, making your application do not need to keep giving Reload and requesting the database after each action that the user do, which would slow the site down for both usability and performance. Using AJAX, it already brings all the data you " ask " and needs to bring to the front end and does not keep making other requests, leaving the site more dynamic and " light ".

  • Thanks buddy, I’ll study your idea!

0

I think for what you want there are several ways to do, php for example you find a lot of content on the internet and it is quite intuitive. Now on the subject of layout you can use bootstrap, which moves containers to assist you in this creation, why if you prescribe to do something very repetitive when bringing users, you can standardize this with a foreach for example.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.