Open BrightkyEfoo opened 6 months ago
Sorry, I should have mentioned this:
I saved images in differents folders:
To get product thumbnails: /uploads/thumbnailsProduits/[filename] Example: http://localhost:3333/uploads/thumbnailsProduits/clv8fqfke00058cjjbxggh0lr.png
To get product image: /uploads/imagesProduits/[filename] Example: http://localhost:3333/uploads/imagesProduits/clv8fqfku00078cjjfv190ysh.png
To get category image: /uploads/categories/[filename] Example: http://localhost:3333/uploads/categories/clv8efig40001v5jj4mqx56wa.jpg
Actually, I should've added the file path instead of the file name.
Yes providing the file path is better for the API consumer. It make sense to have directly a link, 'Cause at any time for any reason you can be call to change the location of your API, I mean a differnt ip, a different port or just a different domain name.
But I notice that every user can add and remove any product, Is it a good way ?
I didn't realize it back then, since I tested it with only one user. No it's not a good way. It depends :
It means you have to introduce lot of new thinks, I mean this is a kind of RBAC
Yes it is. But the test didn't mention anything like that. That's why I didn't do it.
Hummm, ok ok. it will be nice If we can work one day on a project together, Pleas' can i have your email address ?
wakam.hermann@gmail.com
Are you the examinator or what ?
I'm a competitor
Yo didn't notice?
Why are you asking me all those questions ? Do you want to understand my work to better your own ? It's not fair.
I already submit my work since two days bro, don't worry. I'm not here to cheat on you.
Don't worry, chill chill
Okay. Did you use Adonis too ?
Why are you asking me all those questions ? Do you want to understand my work to better your own ? It's not fair.
I'm asking you all those, like, I want understand. I'm in love with your code, I love when things they good. Nothing more!
Okay. Did you use Adonis too ?
Nope, actually I'm learning adonisJS. You see why I'm so interested by your code, right ?
I see you did backend and frontend.
I learned AdonisJs in 02 days, to be able to do the test. Initially i applied for frontend, but the test was for backend so I adapted. I already know some backend (Laravel, Django). AdonisJs is very similar to Laravel. That's why I did it.
I thought the deadline was last sunday. That's why I didn't do any frontend.
Yes I did them two. No the deadline is this sunday. Is it really possible to do it in 3 days ?
It's possible with AdonisJS.
Humm, Humm, you did it
Ok see you, I have a lot of work now... I will mail you later
Ok, me too.
How to get the link of an image after creating a product? I get the name but I don't know wich link or url should i use to render it in a html image element