Gatsby post
Edit first week. I was really optimistic thinking I would have time to write this tuesday. So a week done in labs and I'm even totally sure what happened. We are currently working on a full stack application meant to reduce friction between people who do short term rental properties and the people that clean them. The really fun part is that we are extending a project that has already seen some heavy work. So pretty much this entire week was devoted to just figuring out their infrastructure and getting that setup. I managed to get the backend up pretty much on wednesday. Though the frontend and local development environment was a whole different story. In the end I ended up having to create a heroku instance with two different databases one for development the other for deployment. I figured it was a bit much to ask everyone to host a postgres server locally. A stripe account for getting those api keys, a sendgrid account, and an aws account. Out person that was working on deploying the frontend ended up have to create a firebase account, a google developers account and then had one hell of a time actually getting the frontend deployed to netlify. Funny story about that when she was having problems I figured I would go ahead and try to deploy to heroku we literally deployed within a minute of each other. The heroku setup was quite the headache at least before I actually found what I needed. What I did not know about heroku is that it has something called buildpacks I believe can't look it up at the moment since I don't have internet at the moment that's another fun story. So I spent the better part of 2 days trying to get my procfile to properly deploy to heroku trying different scripts writing a couple relatively complex npm scripts only to be thwarted at every turn by hitting a memory quota. Now sure I could have built the production app on my end then pushed it but that's quite a long time to wait for a push. So I kept forging on digging thtrough the depths of google I found something called create-react-app-heroku once again I believe not totally sure. Turns out all I had to do was add that to the heroku instance and all of the sudden it builds and deploys on commit. How this is not the first result on google when search for "How to deploy create react app to heroku" is totally beyond me. So we get to friday things are looking pretty good got the dev environment setup, a backend working, and two frontends albeit we would be fine with one but nevertheless. I get up early on friday I'm working on some code brushing up on my typescript and react hooks when low and behold my entire computer freezes once again. This has been a reocurring issue for me in linux for some reason. It's way faster than windows until all of the sudden everything just breaks. So my computer freezes. I think "oh no problem I'll just restart it." Boy I could have not been more wrong I restart it and I'm greeted with a black screen only to find out after some digging that my home partition has corrupted, oh joy. I have therefore been working on getting it back up and running since this morning. I'm pretty sur I've tried damn near every trick in the book. But of course fsck won't complete because it's running out of memory so no problem I'll just setup a scratch file for it. But once again twarted by the linux gods. For some reason it's partially writes like 1 scratch file then crashes out. I have to assume it has something to do with using a ntfs drive for my scratch directory but sadly I have not other option since my only ext4 drives are just so happen to be the ones I'm trying to fix. I guess at the very least I can be happy that my root partition didn't corrupt though that would have been better it's easy to replace your system it's much harder to get that dev environment up and running again. Not to mention any other wip code I might have had. While I could probably go on about the various headaches of this week for ages I think I'll stop bothering you though I'll definitely be back next week for more harrowing tales from time at lambda.
P.S. this site is still super WIP i definitely plan on working on this a bit more and cleaning up thanks for the patience. P.P.S I'm super stupid so you know how I didn't have internet. That's because I totally forgot to disable my proxy from when I was last out of town and using my laptop. Oh the joy. More times than not being good with computers just ends up biting you in the ass.