1 00:00:01,170 --> 00:00:04,590 At this point we have created five different streams inside of application. 2 00:00:04,620 --> 00:00:06,510 I just want to give you a quick little note. 3 00:00:06,510 --> 00:00:12,060 When you're using that Jaison server as our API how you can kind of clean up and manually manipulate 4 00:00:12,060 --> 00:00:13,900 some of the different streams that get created. 5 00:00:14,090 --> 00:00:19,200 So over time you might want to kind of delete a bunch of data from the Sun server without having to 6 00:00:19,260 --> 00:00:20,150 manually delete. 7 00:00:20,160 --> 00:00:23,000 And heck we haven't even wired up that delete button just yet. 8 00:00:23,040 --> 00:00:25,510 So we very quickly show you how you can do that. 9 00:00:25,530 --> 00:00:30,240 I'm going to open up my terminal and I'm going to change over to that API directory. 10 00:00:30,420 --> 00:00:35,900 So remember we have the streams folder inside of there is the client and API file folders. 11 00:00:35,970 --> 00:00:41,460 So I to change into API and then inside of your we should see that debugfs on file. 12 00:00:41,550 --> 00:00:45,090 Recall that is what holds all the data inside of our application. 13 00:00:45,090 --> 00:00:50,040 Now inside the API directory I want you to start up your code editor if you have wired up your code 14 00:00:50,040 --> 00:00:53,090 editor to open up from the terminal then go ahead and do so. 15 00:00:53,190 --> 00:00:57,420 Otherwise open up your code editor manually and open up the API directory. 16 00:00:59,260 --> 00:01:04,350 So now inside that API folder all see a couple of different files here. 17 00:01:04,390 --> 00:01:09,010 So I've got the package shot on files and I've got the D-B dot japes on file. 18 00:01:09,010 --> 00:01:12,940 So instead of DBT Jaison you'll see all the different records we have now created. 19 00:01:12,980 --> 00:01:16,030 I've got an idea one two three four and five. 20 00:01:16,060 --> 00:01:21,250 So if you want to make any change changes manually to the data inside of your application you can just 21 00:01:21,250 --> 00:01:22,990 change this file that's it. 22 00:01:22,990 --> 00:01:28,330 So for example if I wanted to delete the last two posts that I created over the last two streams excuse 23 00:01:28,330 --> 00:01:30,390 me I could just manually delete them. 24 00:01:30,420 --> 00:01:33,440 Make sure you clean up the comma on the trailing end as well. 25 00:01:33,490 --> 00:01:39,930 I can then save this file when I change back over to my terminal that is running the API server will 26 00:01:39,940 --> 00:01:42,070 see an automatic reload right here. 27 00:01:42,340 --> 00:01:46,770 So the API server is automatically watching the dbase on file if you change it. 28 00:01:46,800 --> 00:01:49,720 That API server is going to automatically restart. 29 00:01:49,750 --> 00:01:56,560 Now if I go backwards my application I can refresh the page and will see that those two streams disappeared. 30 00:01:56,560 --> 00:01:57,480 All right so that's pretty much it. 31 00:01:57,490 --> 00:02:00,090 That's how we manually change data on the API server. 32 00:02:00,100 --> 00:02:05,800 If you want to over time as we start to create more and more streams as we are testing things you will 33 00:02:05,800 --> 00:02:08,950 eventually see my data on the screen change every now and then. 34 00:02:09,040 --> 00:02:13,660 That's because I am manually deleting streams just to keep this list a little bit manageable so that 35 00:02:13,840 --> 00:02:16,360 you can easily see everything in the video. 36 00:02:16,400 --> 00:02:18,460 OK so now you know how to change your data. 37 00:02:18,460 --> 00:02:21,670 You can close this extra code editor if you want to. 38 00:02:21,670 --> 00:02:26,510 Otherwise you can of course leave it open if you want to change your list of streams over time. 39 00:02:26,590 --> 00:02:28,000 That's really up to you. 40 00:02:28,040 --> 00:02:29,910 I'm going to go ahead and close mine. 41 00:02:29,920 --> 00:02:33,490 All right let's take a quick pause right here and we'll continue in the next section.