| github | https://github.com/daniyal-abbassi |
| age | 25 |
| github | https://github.com/daniyal-abbassi |
| age | 25 |
Day 80/? of coding
Day 80/100 of #100DaysOfCode
Project Update: Blog API (part 8)
++ Progress: add Tag table to Database and add tag input field.
++ Learned:
- Express: I found out we can save a bit of typing by using app.route('/path').get(callback).post(callback)
screenshot:
Day 79/? of coding
Day 79/100 of #100DaysOfCode
Project Update: Blog API (part 7)
++ Progress: render posts in main page + add pagination
++ Learned:
- searchParams (React Router DOM)
--> Provides access to URL query parameters.--> Useful for handling dynamic URL data (e.g., pagination, filters).
- Multer (Node.js File Upload Middleware)
--> Allows customization of file storage (renaming and ...).
Use case: Control how uploaded files are saved (e.g., unique names).
screenshot:
Day 77-78/? of coding
Day 77-78/100 of #100DaysOfCode
Project Update: Blog API (part 5-6)
++ Progress: Finally rendered the admin panel.
++ Learned:
- shadcn-ui: styled components library used with radix-ui and tailwindcss
- status VS sendStatus in express: when sending a JSON with res object, you should use status because sendStatus will fix the headers so you cannot send JSON with it
Here is a screenshot
Day 75/? of coding
Day 75/100 of #100DaysOfCode
Project Update: Blog API (part 3)
++ Progress: Found a good-looking "write-post" React template. I have to figure out the imports and libraries used, and it is A LOT!
++ Learned
🔒 httpOnly Cookies:
When set to true, the browser prevents frontend JavaScript from accessing the cookie (enhances security against XSS attacks).
You can't use document.cookie to read these cookies—they’re only sent to the server automatically with each request.
Day 74/? of coding
Day 74/100 of #100DaysOfCode
Project Update: Blog API (part 2)
++ Progress: I'm getting familiar with communicating with my API from my React app. It's like magic.
++ Learned
--> Meterial-ui : I used pre-built components from metiral-ui website for the first time, it is very useful.
--> API : I used fetch function to make requests to my backend server.
looks like it's #PortfolioDay !
Hey everyone, I'm Dani, doing coding stuff:
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
https://www.digitalocean.com/community/tutorials/nodejs-res-object-in-expressjs
Day 67/? of coding
Day 67/100 of #100DaysOfCode
Project Update: File Drive Project (part 4)
--> I've been fixing error of this app.
--> there was a lot of errors
--> I 've been trying to implement ejs logics into HTML style divs, for example create folder in loop.