How is the page to view the details of the product?

Hey. When you click on a product in a catalog page opens to view in detail. As it happens it's all ie (clicking on a product takes the name, description, price, and is transmitted to the object. And from the object berada values and paste it on the desired location on the page to view the details. - it was initially my idea because the website will upload to github pages ie server-side language is prohibited. How to implement such an idea that later could put on github pages?) . And how if it is possible to use a server language?
April 3rd 20 at 17:44
3 answers
April 3rd 20 at 17:46
Solution
GitHub Pages is only suitable for static sites.

That would make the directory you can use any generator of static sites (e.g. Gatsbyjs, Hugo or Jekyll). For example, when generating a site engine, in given logic will generate for each product your page (taking the data from the API, json file, anything). Accordingly, when you click on a product the user will simply link to the generated static page of this product.
Ie, on github you can make my implementation using Jekyll - lori56 commented on April 3rd 20 at 17:49
Jekyll bills itself as a blog engine, I don't think this is a good option to create this directory, so I would rather look at a more complex generator of static sites. Personally, I made the directories on Gatsbyjs, it is certainly possible to implement. Hugo like the same is capable of. - lavon_Mayer commented on April 3rd 20 at 17:52
April 3rd 20 at 17:48
Solution
json+fetch()
April 3rd 20 at 17:50
Solution
If you do not plan SEO optimization and so on, the easiest way to make a website on React/Vue using their router, then when you transition to the route of the product data will be uploaded and displayed

Find more questions by tags JavaScript