1
00:00:04,490 --> 00:00:12,110
In this lecture, I'll show you how to get Unsplash EBIT and how to insert it into the EPA microservice.

2
00:00:12,500 --> 00:00:17,420
Please note that this step is mandatory for running this project.

3
00:00:17,420 --> 00:00:20,210
Both eyes are locally or inside of the door.

4
00:00:20,750 --> 00:00:26,450
This way, if you want to run this application on your computer, you must get Unsplash EPA IQ.

5
00:00:26,900 --> 00:00:30,770
All right, instructions are allocated in the images, gallery or folder.

6
00:00:30,920 --> 00:00:36,800
You could go to it directly at the GitHub dot com and you're in the region.

7
00:00:36,800 --> 00:00:37,710
Dotcom defile.

8
00:00:37,730 --> 00:00:40,020
You'll find how to get actually.

9
00:00:40,040 --> 00:00:45,410
Unsplash, eBay and how to insert into the EPA microservice.

10
00:00:45,950 --> 00:00:51,770
Also, you could open the same reading that the file located in the image as a gallery folder in the

11
00:00:51,770 --> 00:00:56,600
Visual Studio code, but it's more convenient to read those instructions directly at the top.

12
00:00:57,050 --> 00:01:01,730
So you have to create account at Unsplash dot com afterwords.

13
00:01:01,730 --> 00:01:09,200
You'll create their application with digital, for example, images gallery and noticed that their applications

14
00:01:09,200 --> 00:01:12,290
are limited to 50 requests per hour.

15
00:01:12,470 --> 00:01:16,160
But that's totally fine for the sake of our application.

16
00:01:16,340 --> 00:01:22,490
You will not generate more requests for images afterwards after creation of the new application.

17
00:01:22,640 --> 00:01:28,640
You'll find the section gives Giegold access key and you need to copy it.

18
00:01:28,850 --> 00:01:36,410
And afterwards you'll insert this eBay into the EPA microservice and it will get it as environment variable.

19
00:01:36,890 --> 00:01:44,960
For that, you have to create Dot in the local file inside of the EPA folder and into this file you

20
00:01:44,960 --> 00:01:46,850
have to install just a single line.

21
00:01:47,030 --> 00:01:54,940
Unsplash Gear Equal Sign And here you have to paste corporate access from the unspools dot com heroes.

22
00:01:54,950 --> 00:02:02,060
Example how this configuration should look like on Solecki and here's sample you notice that this key

23
00:02:02,060 --> 00:02:05,750
is invalid, so don't attempt to use it in your application.

24
00:02:05,770 --> 00:02:13,310
Generate yours under your aunt's blest account and afterwards, save modified dot in the local file.

25
00:02:13,850 --> 00:02:18,860
But no question why I ask you to create such file and insert Unsplash.

26
00:02:18,860 --> 00:02:21,500
Kidero answer is very simple.

27
00:02:21,920 --> 00:02:29,230
This file is ignored by it, and therefore when you commit changes, it will not be committed and therefore

28
00:02:29,600 --> 00:02:35,900
such sensitive information as access key will not be pushed, for example, to remote GitHub repository.

29
00:02:36,470 --> 00:02:42,620
Because this is correct approach when you are handling different usernames, passwords, access keys

30
00:02:42,620 --> 00:02:43,280
and so on.

31
00:02:43,760 --> 00:02:50,420
They should be stored only locally on the server or computer where you run your application.

32
00:02:51,530 --> 00:02:59,000
And we are acquiring such in order to run API service actually in development mode locally on your or

33
00:02:59,000 --> 00:02:59,870
my computer.

34
00:03:00,530 --> 00:03:07,490
And if you, for example, deploy same application software into production, you will also have to

35
00:03:07,640 --> 00:03:10,820
create such an environment variable as Unsplash key.

36
00:03:11,000 --> 00:03:14,720
And the such configuration depends on the actual service provider.

37
00:03:15,020 --> 00:03:22,190
But almost always there was a section called environment variables where you could set these and potentially

38
00:03:22,190 --> 00:03:26,330
other environment variables which are required by your applications.

39
00:03:26,900 --> 00:03:33,020
All right, that's quick overview of how you could create an Solecki and insert it into the API service.

40
00:03:33,260 --> 00:03:36,740
And now let's go step by step and perform this task together.

41
00:03:37,220 --> 00:03:42,920
Let me open up Unsplash dot com and here I already have account if you don't have one.

42
00:03:43,070 --> 00:03:48,080
Please go ahead and click here or join fueled information about yourself.

43
00:03:48,080 --> 00:03:49,730
And afterwards, click Join.

44
00:03:50,180 --> 00:03:55,190
I'll go directly to Logan and he'll let me enter my username and password.

45
00:03:56,610 --> 00:03:57,150
Well, again.

46
00:03:58,320 --> 00:04:00,780
And now please open up this URL.

47
00:04:02,030 --> 00:04:03,590
I'll open it in the new tab.

48
00:04:04,990 --> 00:04:10,660
And here I already have a few disabled applications in order to create new application, please click

49
00:04:10,660 --> 00:04:12,010
new application here.

50
00:04:12,850 --> 00:04:14,710
Check all check boxes, hero.

51
00:04:16,240 --> 00:04:19,899
Please read carefully all those FBI terms of use.

52
00:04:21,209 --> 00:04:24,810
Accept terms, and here, please enter application name.

53
00:04:25,080 --> 00:04:25,920
I'll name it.

54
00:04:26,130 --> 00:04:27,150
Same as before.

55
00:04:27,990 --> 00:04:32,460
Images, gallery and description will be the same images gallery.

56
00:04:33,480 --> 00:04:34,920
Let's create a new application.

57
00:04:35,520 --> 00:04:38,430
Application was created, and here you see a tech demo.

58
00:04:38,610 --> 00:04:42,810
It means that this application is limited to 50 requests per hour.

59
00:04:43,020 --> 00:04:46,860
But if you want to increase the rate limits, you could apply for production.

60
00:04:47,010 --> 00:04:51,180
And here, following this URL, you could read guidelines regarding DEP.

61
00:04:51,780 --> 00:04:52,210
All right.

62
00:04:52,470 --> 00:04:54,570
Let me scroll down and find access.

63
00:04:54,780 --> 00:04:56,070
And here was mine.

64
00:04:56,310 --> 00:04:57,150
Please copy it.

65
00:04:57,150 --> 00:04:58,970
Ensured that you could be accessed.

66
00:04:59,000 --> 00:05:00,870
Key, not secret gear.

67
00:05:01,140 --> 00:05:02,400
So let me copy it.

68
00:05:03,300 --> 00:05:05,760
And no, let's proceed with further instructions.

69
00:05:06,300 --> 00:05:11,160
Now we have to create Dot Ian Vidot local a file inside of the EPA folder.

70
00:05:11,460 --> 00:05:12,440
Let's go there.

71
00:05:13,710 --> 00:05:20,820
Expand eBay, a folder and the heel, let's create dot envy dot local file, and here inside, let's

72
00:05:20,820 --> 00:05:27,180
add an environment variable Unsplash and Grosicki and as well it will be set to just go you.

73
00:05:28,080 --> 00:05:31,200
Let's say of changes in this not inhibited local file.

74
00:05:31,530 --> 00:05:38,730
And please notice that such file is great old and it does not offer me to commit changes in this file.

75
00:05:39,090 --> 00:05:46,080
And this is because there was ignore a file which ignores such files as not envy the local and other

76
00:05:46,080 --> 00:05:47,580
environment related files.

77
00:05:48,390 --> 00:05:53,430
All right, now we are all set and we went through all those instructions and now you're ready to go

78
00:05:53,430 --> 00:05:59,760
and start A. Application that consists of API and front end services.

79
00:06:00,300 --> 00:06:03,240
But as I explained you before, you have two options to run.

80
00:06:03,240 --> 00:06:12,180
An application either ran in separately API and front end services or running all of them simultaneously

81
00:06:12,180 --> 00:06:13,110
using Docker.

82
00:06:13,710 --> 00:06:18,360
And I'll show you how to run them separately locally on your machine.

83
00:06:18,990 --> 00:06:22,800
And in order to do so, you have to install Node.js and Python.

84
00:06:23,040 --> 00:06:28,200
And in the next few lectures, I'll explain to you how to do that, but please notice that running of

85
00:06:28,200 --> 00:06:32,910
this application locally without Docker is completely optional in this course.

86
00:06:33,180 --> 00:06:38,610
This way, if you don't want to install Node.js and Python, you could simply skip next few lectures

87
00:06:38,850 --> 00:06:40,200
and continue to follow me.

88
00:06:40,350 --> 00:06:45,210
When I start localization of API and front end microservices.

89
00:06:45,600 --> 00:06:50,490
But if you want to get your hands dirty and tried to launch this application without Docker, I am more

90
00:06:50,490 --> 00:06:54,720
than welcome you to do that because in such a way, you'll deeply understand difference between the

91
00:06:54,720 --> 00:06:57,780
running applications without Docker and with Docker.

92
00:06:58,100 --> 00:06:58,500
All right.

93
00:06:58,530 --> 00:07:02,490
In the next lecture, I'll show you how to get Node.js installed on your computer.

