#Picking a Stack for Instacart webpage
1 messages · Page 1 of 1 (latest)
any language and any framework. one way you could decide is by looking at job listings in your area and choosing whats most popular
as for your other question, JS, HTML, and CSS are client side so theres a few ways you can approach that. IDK if spring offers a way to do SSR (server-side rendering) but if not you could do your frontend with a JS framework like React, Vue, or if you want better SEO you could use something like Vite or Next and make sure theyre set up for server side rendering
i’m not really looking at publishing the page, im just going to have it as a personal project on my portfolio. my main factor for doing the project is really just to learn. i’ve never done a full stack project & this would be a great way to learn imo
so i’m not too worried about SEO
what is the difference between client side & server side rendering?
check out this article: https://www.toptal.com/front-end/client-side-vs-server-side-pre-rendering
thank you!
since you dont care about SEO, Id recommend React or Vue, they seem to be pretty popular in the job market
big communities too so itd be easy to google questions around them
thank you for all of the help
If you are a beginner, I would say like HTML5/CSS3/JavaScript and some very simple jQuery
you could also use a pre-written widget in JS, but basically a "cart" is just a json array of json object
on which you push / add json object at the end
yeah if youre right at the start of learning focus on the fundamentals ^ :)
then you can save this "cart" on a back-end or simply in a localstorage for now
localstorage will work as a demo, since no back-end required
the "shopping cart" lives in the client browser only and is not sent anywhere
;compile js
var json = "";
var cart = [
{ "id" : 1001, "quantity": 5, "name" :"apple" },
{ "id" : 1002, "quantity": 12, "name" :"banana" },
];
json = JSON.stringify(cart);
//console.log(cart);
console.log(json);
var cherry = { "id" : 1003, "quantity" : 1, "name" :"cherry" };
cart.push(cherry);
json = JSON.stringify(cart);
//console.log(cart);
console.log(json);
How you like them apples?
[{"id":1001,"quantity":5,"name":"apple"},{"id":1002,"quantity":12,"name":"banana"}]
[{"id":1001,"quantity":5,"name":"apple"},{"id":1002,"quantity":12,"name":"banana"},{"id":1003,"quantity":1,"name":"cherry"}]
and the UX is just a simple <form> some CSS and some simple JS
i mean i’m in the intermediate stage (i guess) of java, like i know OOP, DS & algo, etc, but i have rarely touched front end at all other than creating a business card which is able to be flipped when clicked lol
JavaScript is simpler than Java, at least for the "easy part" of just manipulating forms, dom, simple data
in JavaScript you have boolean / long / double / String (JSON Scalar), Array (JSON Array) and Hashtable (JSON Object)
plus undefined and null
Not to revive an old thread but if you are doing a shopping website or anything similar I recommend next.js (https://nextjs.org)
For fetching data I recommend microsoft's axios library. For data storage using mongodb may be easiest, but if you can use an SQL database, use it.
@chilly topaz you are OVER DOING it
let's put together 3 crazy frameworks into a newbie? seriously, when the VanillaJS solution is like super simple?
you could also use a wordpress shopping cart plugin
yeah i'm not sure i'm reading for a bunch of frameworks haha, i'll look into them eventually though!
I'f Im objective about things, I do think it is important to at least learn react.js for anyone who is new to web design
Literally every job requires it
Definitely learning the basics of React is critical. Axios not so much. I just use it because I don't think es6 fetch is available on the backend (nodejs) yet.
What do you call a person who hates hippos because they're so hateful? Hippo-critical.
not every job