Ask HN: What is your advice for someone trying to build a “Hacker News clone”
I am a learning a new stack and I thought of building a HN clone to use what I'm learning (Spring boot & Angular).
I don't have so much experience with web development (haven't used any front-end framework before), but I was messing around with some PHP/Laravel for (almost) the last year.
would you encourage me to go with this Idea? or you have another suggestion? if yes, which database do you think a should use? a relational (I'm a bit comfortable with Postgres) or some non relational (MongoDB). also if I want to put this in a micro-services format, how do I split up my services (like submissions, profiles...) I am new to this. I'm asking about which database since the mentioned stack is terminated by my school, but not the database.
as I said, the purpose of this project is education purposes only (also to show off on my resume/portfolio).
Thanks in advance
6 comments
[ 2.4 ms ] story [ 27.5 ms ] threadI haven't heard about anybody using Angular for like... 6 years now. Look at React, Vue or Svelte.
You can't get fired for choosing Postgres. Mongo is no damn good.
If I wasn't preoccupied with making social systems intelligent (e.g. use classifiers and clustering to only show you good stuff) I'd be thinking about using websockets to make the site update itself in real time. It would make one heck of a demo (one person posts something, the post appears right away in another browser) but I am not so sure what kind of database you'd use to support that. If you use React or svelte the front-end for that would be easy.
I am thinking about Websockets as well, even I don't understand how it works in depth, I'll look into that. also I might also try using gRPC instead of REST APIs since this is becoming possible. this may seem a lot, but I hope I can get may head around this in 3 months :)
If I was you, I'd just to VueJS -> Laravel -> Postgres to start with.