techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

5.4K
active users

#100daysofcode

24 posts15 participants4 posts today

Day 71/? of coding
Day 71/100 of #100DaysOfCode
Project Update: File Drive Project (part 8)

++ Problem: Deploy and publish 😭
--> I can't deploy my app, I spent 5 hours, and I am done with it, can't figure out how to run Prisma migrate before actually deploying, and I am frustrated.

++ Learned
--> jamstack style:
jamstack.org/what-is-jamstack/

--> API URI and API REST, article :
stackoverflow.blog/2020/03/02/

--> JWT authorization, here a video :
youtube.com/watch?v=7nafaH9SddU

Jamstack.orgWhat is the Jamstack? | JamstackWhat is the Jamstack? Why use the Jamstack? JavaScript, APIs, and Markup - learn what the Jamstack is all about and its approach for building faster, more secure websites.

After having read what horrors people experienced when they upgrade their Hugo binaries, I made sure that I've kept the version that I used to make my test site & also consequently use *that* version to continue to teach myself a higher level of fluency in the markdown language

`hugo version`
hugo v0.140.2-aae02ca612a02e085c08366a9c9279f4abb39d94+extended linux/amd64 BuildDate=2024-12-30T15:01:53Z VendorInfo=gohugoio

🖋️ #bash #sh #zsh #ksh #csh #Hugo #Linux #POSIX #FOSS #100daysofCode #640DaysOfCode #1024DaysOfCode #programming

Day 70/? of coding
Day 70/100 of #100DaysOfCode
Project Update: File Drive Project (part 7)

++ Problem: a Loading Component while uploading a file.

++ styling is almost done, I just have to test it and deploy it(oh hell, deployment again)

++ Learned
--> HOST & PROTOCOL
req.protocol and req.host can give you these.

Day 69/? of coding
Day 69/100 of #100DaysOfCode
Project Update: File Drive Project (part 6)

++ Problem: render something while file is uploading.

++ Learned
--> Prisma migrate and generate.
--> COPY WITH CLICKING
I like this one. Here is the method:
navigator.clipboard.writeText(link) and it will just copy the Link to your Clipboard!!!

Day 68/? of coding
Day 68/100 of #100DaysOfCode
Project Update: File Drive Project (part 5)

++ Problem : share link URL(limited access)
--> I should create share links for folders(not-logged users access)

++ LEARNED
--> USE OF ABSOLUTE PATHS
styles.css error: should use :
<link rel="stylesheet" href="/styles.css"> , the FIX is changing href="./styles" to just use '/' and with this fix, browser always look for 'styles.css' at your root domain.

--> res OBJECT in EXPRESS
digitalocean.com/community/tut