Lurker News
I'm in a weird place. I used to work as a developer but never thought I was that great. Most of my jobs were small features, fixing bugs, etc. Honestly I was quite lazy and coasted somehow. I’m trying to change all of that now.

I feel like I'm behind 'bootcamp grads' because they can actually push deploy real code.
I have a bunch of hobby project ideas, for example one tries to use the Spotify API and the MapBox API, but every time I start I get overwhelmed with what stack I should use, and how to actually get a ‘real’ application out. It’s hard to explain. I have a lot of anxiety and analysis paralysis about this.
I’m hoping for some great resources to actually build something and learn at the same time, so I can get my confidence up and actually get some MVPs going so I can ‘learn by doing’.
I feel like every tutorial I look at either:
1. Starts out great, explaining stuff but then becomes outdated/frustrating by the end (ex: https://www.smashingmagazine.com/2019/03/spotify-app-vue-nuxt-javascript/)
2. Is WAY too basic. I don’t want to learn basic syntax over and over.
3. Keeps making me switch tech stacks. I just want to use Python/Flask or learn JS/Node. I want to use VUE just because it’s new and it’s docs seem good. I don't even know what's out there anymore or what's good about it. I just want some consistency. Everyone says the stack doesn't matter too much anyway. Just want it to be fun...
RealPython and FullStackPython seem like they have good tutorials so far but what I’ve been googling so far (Spotify Vue Tutorial Project Setup) has not come up with stuff that clicks with me.
Sorry for the ramble… I just want to work without feeling bored or overwhelmed. Any suggestions? Thanks ~

Comments (141) 97 threads

Show all comments

Showing thread 78 of 97

LegitGandalf1 reply#
I recommend running a serverless stack so you can avoid getting hung up on infrastructure shenanigans. It's super cheap too. React SPA via CreateReactApp using cloudfront+s3 to host the HTML+css+js and API gateway ->lambda backend -> w/dynamodb to store your data and you can get something cool and useable going. In that stack you can mix and match other UI tiers, swapping vue, angular or polymer in for react.

I recently completed a proof of concept with both polymer and react on the above stacks, probably going to do angular next. There were some annoying things in the area of error reporting being unclear from AWS' stack, but once I figured out that CORs warnings from the UI tiers accessing the API gateway usually mean a self inflicted typo in my url it was pretty smooth sailing.

stoicShell2 replies#
A few questions, as I don't know AWS much beyond basic VMs.

- Is all this easy to do following their docs, are we talking 1 h setup or 1 day?
- Cost: how much are we talking per week/month? (assuming no traffic but yours)

brantonb#
For the first year, you get one million requests per month for free. After that, it’s $0.20 per million requests. There’s also a component based on time & memory usage, but it appears to be small, too.

https://aws.amazon.com/lambda/pricing/

LegitGandalf1 reply#
The setup was pretty straightforward with tutorials galore and it's rediculous cheap, the most expensive part is the route53 stuff as it costs a buck a month or something like that to route a domain. Well, I bought a few domains too so those are like 15 bucks a year (I got them from a random registrar, not aws).

Don't get me wrong though, it won't be a path of roses, aws error messages sometimes make no sense whatsoever and require some googling to figure out, typos are NOT your friend!
Luckily Google usually led me to someone trying to set something up similar and I could logic it out from there. My #1 thing that I wish someone had told me was that if you make a Ajax call to your web API and the browser spits out a CORS error, check, triple check the url and what kind of call you are making (POST, GET, etc) because at least on my setup mistakes in those actually shows up as a CORS error instead of your typical 404 error.
I also bit the bullet and figured out how to use one of the serverless sites to deploy the AWS API+lambda+dynamodb one one fell swoop using a .yml file. But first I did it all by hand via the AWS gui so I could get some idea of how it worked. That .yml file is a whole other rabbit hole as the error messages are pretty obtuse at times.
Edit: One thing to watch for on cost is the dynamodb, by default they reserve 25 total transactions per second on the free tier. If you try to increase the performance by reserving much a whole lot more, like 1000 tps per table/index, that will get pricey right quick. So either leave it at 25 and recognize that if you add an index things might get throttled while it builds the index, or do what I did, which is I went ahead and switched it to the pay as you go model since $0.20 per million transactions is plenty cheap and I'm not even flirting with that 20 cents on my proof of concepts that span 5 different web domains.

stoicShell#
Wow, that is everything I asked for and more; thanks a lot for taking the time and effort to summarize all this. Now I feel like I can get started with this tomorrow.

Couple remarks:
> CORS
Oh, that may save me lots of time... Seems related to http headers at first Googlance? These bit me in the past (in middleware and backend apps) and I still don't have a solid grasp of when I should use which.
> dynamodb
I'll probably do the same as you then.
I've got hobbyist hardware at home (behind 1G fiber) so I usually use that as a lab — I still have to make a 'serverless' platform though — so anything too expensive I can balance back 'on-prem'.
I need to learn AWS anyway (who doesn't, I figure, if you intend to CI/CD as small/one-man team). Glad I can go the serverless path to get my feet wet!
Thanks again.