1
00:00:00,970 --> 00:00:02,650
Let's handle this case very quickly.

2
00:00:02,890 --> 00:00:04,840
I'm going to first begin by delaying the comment.

3
00:00:05,730 --> 00:00:12,900
And then going to try to write a file with FS dot right file, we're going to write a file to file path.

4
00:00:15,140 --> 00:00:19,970
And inside there, we're going to right in right now an empty array as a string, we are writing in

5
00:00:19,970 --> 00:00:24,830
an empty array because remember, we are currently storing that inside that file a list of cells as

6
00:00:24,830 --> 00:00:25,900
a JSON string.

7
00:00:26,510 --> 00:00:28,920
I can make sure that I encode this file as eight.

8
00:00:31,130 --> 00:00:34,730
So the MTA specifically means we have no cells inside of here whatsoever.

9
00:00:35,120 --> 00:00:36,800
This might not be the best default.

10
00:00:37,160 --> 00:00:41,630
Instead, we might want to say that if a user is trying to create a file for the very first time or

11
00:00:41,630 --> 00:00:45,980
create a notebook for the very first time, we might want to put in some really nice default values

12
00:00:45,980 --> 00:00:46,520
inside there.

13
00:00:46,740 --> 00:00:52,000
So maybe one cell that is a text cell that just explains what is going on with this application, that

14
00:00:52,010 --> 00:00:55,850
they can better understand exactly how to create cells, how to edit them and so on.

15
00:00:56,510 --> 00:00:59,630
But we will eventually come back and add in some more sensible defaults.

16
00:00:59,900 --> 00:01:02,330
Right now, we'll just put an empty array inside their.

17
00:01:03,820 --> 00:01:08,360
Well, then make sure they also send back whoever made this request, an empty array as well.

18
00:01:08,860 --> 00:01:12,220
Again, that means that we have no cells to provide back to the browser.

19
00:01:13,230 --> 00:01:16,830
Again, we will come back and improve these lines a little bit, but right now they're going to work

20
00:01:16,830 --> 00:01:17,300
just fine.

21
00:01:18,370 --> 00:01:22,800
OK, so that looks good or appears in a reasonable state, so we're going to take a pause right here,

22
00:01:22,810 --> 00:01:26,320
come back to the next video and start to add in some code for our REACT application.

