B1tWise
TTCTheo's Typesafe Cult
•Created by Jaa9 Bravo on 1/3/2025 in #questions
Google drive as file storage
Disclaimer that I haven't done much with the google drive APIs so I might be ignorant of some hack to make the auth do what you want.
That said, my guess is that google probably doesn't support quite what you want. So instead of having the client on the kindle directly connect to google drive (requiring that it log into google, by the sound of it), my suggestion would be to have your server present its own CRUD endpoints, and then the server can use a client secret (or whatever OAuth flow makes sense) to interact with google docs on the backend. Basically like how a normal database would work: you don't give the client direct access to your postgres db, instead you give your server access using a secret and then your server acts as a middle man between the DB (in this case google docs) and the client. Then you're completely free to do the authentication (or lack thereof) between the client and your server however you want.
11 replies
TTCTheo's Typesafe Cult
•Created by Sandip on 1/3/2025 in #questions
Is it necessary to have backend to upload pdfs, in uploadthing ???
These uploadthing docs have pretty good guidance about how to implement your own backend endpoints if they don't support the language you need. It seems like you just need to implement
GET/POST /api/uploadthing
endpoints on your .net backend, and then you should be able to get uploadthing working10 replies
TTCTheo's Typesafe Cult
•Created by TeeZards on 1/2/2025 in #questions
dockerhub storage problem?
It looks like public dockerhub repos are still free, so if you're hosting OSS stuff then I think you're fine. For private repos, I've used AWS ECR for the most part and been very happy with it. It has quite a lot of support for automated cleanup of old images, and if you already are using AWS then authenticating with it is pretty strait forward. The pricing is also quite reasonable IMO. I imagine GCP/Azure probably have similar offerings as well, but I've never used them so idk the details
4 replies
TTCTheo's Typesafe Cult
•Created by Nitro24 on 1/2/2025 in #questions
Couple Apache Question
The world of enterprise java java EE jakarta EE frameworks is a bit of a tangle to figure out. I think the wiki page on servlets is a very good place to start getting an understanding of where tomcat fits into the bigger technical picture
6 replies
TTCTheo's Typesafe Cult
•Created by Nitro24 on 1/2/2025 in #questions
Couple Apache Question
Actually, I just tried that (it's been a while since I've used tomcat) and it turns out for "security reasons" they made it a little more annoying to get the admin dashboard going. Turns out after you start the container you've gotta run a command inside the container to enable the dashboard. So to make that work you've actually gotta:
to start the container, and then to actually enable the dashboard you have to deploy the dashboard. There are prob a couple ways to do it, but this is one:
More info about this extra wrinkle here. Understanding the thinking behind why they chose to make this change might be good prep for an interview ;)
6 replies
TTCTheo's Typesafe Cult
•Created by Nitro24 on 1/2/2025 in #questions
Couple Apache Question
is it possible to deploy and an Apache instance within a VM, and if so help on how to do it is appreciatedA docker container isn't quite the same as a VM, but I think it's probably what you want in order to get started easily. Assuming you've got docker installed on your computer (if not, you should google how to install it), you can start tomcat with
docker run -it --rm -p 8888:8080 tomcat:9.0
(source), and then if you open http://localhost:8888 in your browser you should see the tomcat dashboard6 replies
TTCTheo's Typesafe Cult
•Created by Nitro24 on 1/2/2025 in #questions
Couple Apache Question
Hey!
I think you're getting (understandably) tripped up between Apache Foundation and Apache Server. Apache Foundation is a not-for-profit that organizes and financially supports a bunch of extremely popular open source projects. The projects that are supported by the apache foundation are prefixed with the Apache name, and are sometimes written by the same group of devs (maybe always, I'm not sure about that part). These projects span a huge range of technologies, and many have developed great reputations for being extremely solid pieces of tech. Here's a handy list of all their projects.
One of their most popular such projects is the Apache Server (which is, you guessed it, a server runtime. Kinda like Node, but for Java). There's another (completely unrelated) project called Apache Tomcat which is also a server, but it's written in java and is designed to run as part of the Enterprise Java stack, which is about as fun as it sounds. Yet another project is Apache Ant, which is an alternative build system compared to Maven. It's vaguely like a java version of esbuild (I think... I've admittedly never used it). Another competitor in that ecosystem is gradle, if you want yet another thing to look into ;)
6 replies
TTCTheo's Typesafe Cult
•Created by Abdussomad on 1/2/2025 in #questions
Integrating uploadthing with REACT + VITE
How are you hosting/deploying your app? My understanding is that uploadthing relies on having a server that can handle webhooks/callbacks and secret keys, so if you're deploying your react app as static files via a CDN, then I don't think upload thing will work for that usecase
2 replies