User I have a first json file named values_and_save and a second file named filedProperty. I want to add a new line in the first file. At the same time, the line added in the first file brings the name of Opekt to the second file using vue 3 and typescript and json server.
Are meaning delete and add stuff to a local json file? Or do you mean deleting and adding stuff to a json based database? Let me know! I can put together a video for you either way 👌
@@devspot3864 I believe the json based database, like the one you are iterating through in this video. That would be very much appreciated if you considered making a video on that!
Okay cool! Ya I can definitely put a video together over the topic of adding and deleting on a database. I did actually make video on how to add data to dynamodb as well as pull the data in to your project so check that out here th-cam.com/video/o51HXC1-q1E/w-d-xo.html But I could definitely go more in depth on showing how to POST, DELETE, PUT, etc...
Great video, however it doesn't work for me... when I put the {{ item.name }} into my container nothing happens. However when I put {{ data }} it all appears fine.
Hey Mantas! Would you be able to show me the div that has the v-for loop in it? I am wondering if maybe the v-for loop is not set up correctly. Maybe just try copy and pasting the div in a reply to this message and I will take a look.
One way that you can use images in JSON Data is by Base64 encoding your image. In my most recent video I show how to do this. Here is the link and a time stamp: th-cam.com/video/Sp_0qXlBNlo/w-d-xo.html&ab_channel=DevSpot (34:34) You can map the base64 encoded image to the src of an img. Let me know if this helps or if you need anything else!
@@devspot3864 Nice, Thank you, it was helpful in my situation, because I don't have many pictures, but what if the JSON file has hundreds or thousands images, how to solve that? :)
Sorry for the delayed response, I would assume if you have thousands of images you might want to look into other methods of storing them. Maybe look into AWS S3 services. I'm pretty sure that would give you higher scalability.
Crear video, I have a problem with the image Path not working I think for a Base VueJs path for storing images
Were you able to figure out your issue?
@@devspot3864 Yep
User
I have a first json file named values_and_save and a second file named filedProperty. I want to add a new line in the first file. At the same time, the line added in the first file brings the name of Opekt to the second file using vue 3 and typescript and json server.
What about images???
You could use base64 encoded images!
how about nested json data like arrays of object and you want specific data, should i go traditional map() or theres a vue function for it?
The v-for directive allows for use of indexes. That might help you get specific nested items.
thanks for the video really clean and nice video
🌹🌹
Thanks Leo!! 👍👍
I was wondering if you could do a video on adding/deleting stuff to a json file?
Are meaning delete and add stuff to a local json file? Or do you mean deleting and adding stuff to a json based database? Let me know! I can put together a video for you either way 👌
@@devspot3864 I believe the json based database, like the one you are iterating through in this video. That would be very much appreciated if you considered making a video on that!
Okay cool! Ya I can definitely put a video together over the topic of adding and deleting on a database. I did actually make video on how to add data to dynamodb as well as pull the data in to your project so check that out here
th-cam.com/video/o51HXC1-q1E/w-d-xo.html
But I could definitely go more in depth on showing how to POST, DELETE, PUT, etc...
You'll have to let me know what you think of the video I just linked. Hopefully that can help you until I put together a new video.
Great video, however it doesn't work for me... when I put the {{ item.name }} into my container nothing happens. However when I put {{ data }} it all appears fine.
Hey Mantas! Would you be able to show me the div that has the v-for loop in it? I am wondering if maybe the v-for loop is not set up correctly. Maybe just try copy and pasting the div in a reply to this message and I will take a look.
@@devspot3864 I managed to figure it out hah! I had my JSON file setup wrong... All good now though :)
😁👍
gow about image?
One way that you can use images in JSON Data is by Base64 encoding your image. In my most recent video I show how to do this.
Here is the link and a time stamp:
th-cam.com/video/Sp_0qXlBNlo/w-d-xo.html&ab_channel=DevSpot
(34:34)
You can map the base64 encoded image to the src of an img. Let me know if this helps or if you need anything else!
@@devspot3864 Nice, Thank you, it was helpful in my situation, because I don't have many pictures, but what if the JSON file has hundreds or thousands images, how to solve that? :)
Sorry for the delayed response, I would assume if you have thousands of images you might want to look into other methods of storing them. Maybe look into AWS S3 services. I'm pretty sure that would give you higher scalability.
Really helpful thanks
Glad it helped!!