1
00:00:00,540 --> 00:00:05,670
We're going to start our documentation set up with a little detour where I'll show you how to clone

2
00:00:05,670 --> 00:00:07,170
an existing program.

3
00:00:07,680 --> 00:00:09,960
Needless to say, technically it's optional.

4
00:00:10,410 --> 00:00:14,370
If you don't want to do that, you can just keep using the project we used for deployment.

5
00:00:14,880 --> 00:00:20,820
But if you're anything like me, essentially, if possible, you don't like keeping the project on your

6
00:00:20,820 --> 00:00:24,060
local machine and instead you want to keep them on a cloud.

7
00:00:24,330 --> 00:00:26,250
I think you'll find this video useful.

8
00:00:26,670 --> 00:00:29,490
And I want to start by navigating back to my desktop.

9
00:00:29,500 --> 00:00:31,860
I'm looking for my terminal first.

10
00:00:31,860 --> 00:00:33,400
I want to navigate desktop.

11
00:00:33,600 --> 00:00:37,530
So let's say here, KDDI desktop, then we want to go with Hiroku.

12
00:00:37,530 --> 00:00:42,590
So that's the Scilly, then get clone and hyphenating.

13
00:00:43,260 --> 00:00:50,800
And after that, we need to provide the name of the app, which in my case is Jobs API zero six.

14
00:00:51,180 --> 00:00:58,830
So either you can copy and paste or you can type it out and case I'm going to go the jobs API and zero

15
00:00:58,830 --> 00:01:03,050
six and now on my desktop I should have the report.

16
00:01:03,390 --> 00:01:08,010
And what that means is that the URL is pointing back to the Oracle.

17
00:01:08,430 --> 00:01:14,310
So every time I make some change, of course we'll push it back to Heroku on all the changes will be

18
00:01:14,310 --> 00:01:14,710
applied.

19
00:01:15,180 --> 00:01:21,510
Now, what's missing, of course, is the node modules as well as the data entry, because remember,

20
00:01:21,870 --> 00:01:26,820
if we take a look at our get ignore, this is not pushed up to the garum.

21
00:01:27,180 --> 00:01:29,490
Now, in order to fix that, only need to create a file.

22
00:01:29,790 --> 00:01:37,860
So go with DOT N.V. and then we want to provide all three values, Mongo, Urai and rest of the two

23
00:01:38,220 --> 00:01:41,470
for the JWT now where you can get them.

24
00:01:41,630 --> 00:01:47,970
Remember, if we navigate to our application, then more specifically settings we have our variables.

25
00:01:47,970 --> 00:01:49,290
Correct config vars.

26
00:01:49,590 --> 00:01:57,480
So just open this up, set it up in that and we install all the packages and then you can run and p

27
00:01:57,720 --> 00:01:58,320
start.

28
00:01:58,320 --> 00:02:03,870
And once I'm done setting up my environment variables like I already mentioned, we're going to go forward

29
00:02:04,110 --> 00:02:05,520
and be installed.

30
00:02:05,770 --> 00:02:09,930
So install all the packages and then let's go and rpm start.

31
00:02:10,440 --> 00:02:15,570
Now since I want to make tiny changes here, there's not going to be that much code.

32
00:02:15,570 --> 00:02:19,770
Essentially I will keep in the package just on node.

33
00:02:20,130 --> 00:02:20,550
Yes.

34
00:02:20,880 --> 00:02:27,810
Please keep in mind that if you want to add more, change the project probably more useful to set up

35
00:02:27,810 --> 00:02:33,720
the command where you're using the nordman, because if you remember, it's quite annoying with now

36
00:02:33,720 --> 00:02:35,040
that you have to restart.

37
00:02:35,040 --> 00:02:40,380
Every time you make the change, then you have only, like, I don't know, six lines of code.

38
00:02:40,560 --> 00:02:42,510
So it doesn't really matter in our case.

39
00:02:42,510 --> 00:02:47,850
But in general, if this is what you're doing, if you're closing the app back from the Hiroku, just

40
00:02:47,850 --> 00:02:53,820
remember to change the start command or set up some kind of command that you can use in Dev, where

41
00:02:53,820 --> 00:02:57,780
effectively you are using node one right from the get go.

42
00:02:58,080 --> 00:03:03,150
And if I can see that server is listening on Port 5000, that means that everything is correct.

43
00:03:03,540 --> 00:03:10,890
And if I navigate to the localhost 5000 in my browser, I should have that silly jobs API.

44
00:03:11,190 --> 00:03:14,160
And with this in place now, I can start setting up the docs.

