You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: challenges/05-apis-and-microservices/apis-and-microservices-projects.json
+50-28Lines changed: 50 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -10,32 +10,44 @@
10
10
"description": [
11
11
"Build a full stack JavaScript app that is functionally similar to this: <a href='https://curse-arrow.glitch.me/' target='_blank'>https://curse-arrow.glitch.me/</a>.",
12
12
"Working on this project will involve you writing your code on Glitch on our starter project. After completing this project you can copy your public glitch url (to the homepage of your app) into this screen to test it! Optionally you may choose to write your project on another platform but it must be publicly visible for our testing.",
13
-
"Start this project on Glitch using <a href='https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-project-timestamp/'>this link</a> or clone <a href='https://github.com/freeCodeCamp/boilerplate-project-timestamp/'>this repository</a> on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!"
13
+
"Start this project on Glitch using <a href='https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-project-timestamp/' target='_blank'>this link</a> or clone <a href='https://github.com/freeCodeCamp/boilerplate-project-timestamp/'>this repository</a> on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!"
14
14
],
15
15
"tests": [
16
16
{
17
-
"text": "It should handle a valid date, and return the correct unix timestamp",
18
-
"testString": "getUserInput => $.get(getUserInput('url') + '/api/timestamp/2016-12-25').then(data => { assert.equal(data.unix, 1482624000000, 'Should be a valid unix timestamp'); }, xhr => { throw new Error(xhr.responseText); })"
17
+
"text":
18
+
"It should handle a valid date, and return the correct unix timestamp",
19
+
"testString":
20
+
"getUserInput => $.get(getUserInput('url') + '/api/timestamp/2016-12-25').then(data => { assert.equal(data.unix, 1482624000000, 'Should be a valid unix timestamp'); }, xhr => { throw new Error(xhr.responseText); })"
19
21
},
20
22
{
21
-
"text": "It should handle a valid date, and return the correct UTC string",
22
-
"testString": "getUserInput => $.get(getUserInput('url')+ '/api/timestamp/2016-12-25').then(data => { assert.equal(data.utc, 'Sun, 25 Dec 2016 00:00:00 GMT', 'Should be a valid UTC date string'); }, xhr => { throw new Error(xhr.responseText); })"
23
+
"text":
24
+
"It should handle a valid date, and return the correct UTC string",
25
+
"testString":
26
+
"getUserInput => $.get(getUserInput('url')+ '/api/timestamp/2016-12-25').then(data => { assert.equal(data.utc, 'Sun, 25 Dec 2016 00:00:00 GMT', 'Should be a valid UTC date string'); }, xhr => { throw new Error(xhr.responseText); })"
23
27
},
24
28
{
25
-
"text": "It should handle a valid unix date, and return the correct unix timestamp",
"text": "It should handle an empty date parameter, and return the current time in unix format",
34
-
"testString": "getUserInput => $.get(getUserInput('url') + '/api/timestamp').then(data => { var now = Date.now(); assert.approximately(data.unix, now, 20000) ;}, xhr => { throw new Error(xhr.responseText); })"
41
+
"text":
42
+
"It should handle an empty date parameter, and return the current time in unix format",
43
+
"testString":
44
+
"getUserInput => $.get(getUserInput('url') + '/api/timestamp').then(data => { var now = Date.now(); assert.approximately(data.unix, now, 20000) ;}, xhr => { throw new Error(xhr.responseText); })"
35
45
},
36
46
{
37
-
"text": "It should handle an empty date parameter, and return the current time in UTC format",
38
-
"testString": "getUserInput => $.get(getUserInput('url') + '/api/timestamp').then(data => { var now = Date.now(); var serverTime = (new Date(data.utc)).getTime(); assert.approximately(serverTime, now, 20000) ;}, xhr => { throw new Error(xhr.responseText); })"
47
+
"text":
48
+
"It should handle an empty date parameter, and return the current time in UTC format",
49
+
"testString":
50
+
"getUserInput => $.get(getUserInput('url') + '/api/timestamp').then(data => { var now = Date.now(); var serverTime = (new Date(data.utc)).getTime(); assert.approximately(serverTime, now, 20000) ;}, xhr => { throw new Error(xhr.responseText); })"
39
51
}
40
52
],
41
53
"solutions": [],
@@ -55,11 +67,12 @@
55
67
"description": [
56
68
"Build a full stack JavaScript app that is functionally similar to this: <a href='https://dandelion-roar.glitch.me/' target='_blank'>https://dandelion-roar.glitch.me/</a>.",
57
69
"Working on this project will involve you writing your code on Glitch on our starter project. After completing this project you can copy your public glitch url (to the homepage of your app) into this screen to test it! Optionally you may choose to write your project on another platform but it must be publicly visible for our testing.",
58
-
"Start this project on Glitch using <a href='https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-project-headerparser/'>this link</a> or clone <a href='https://github.com/freeCodeCamp/boilerplate-project-headerparser/'>this repository</a> on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!"
70
+
"Start this project on Glitch using <a href='https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-project-headerparser/' target='_blank'>this link</a> or clone <a href='https://github.com/freeCodeCamp/boilerplate-project-headerparser/'>this repository</a> on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!"
59
71
],
60
72
"tests": [
61
73
{
62
-
"text": "I can get the IP address, language and operating system for my browser.",
74
+
"text":
75
+
"I can get the IP address, language and operating system for my browser.",
63
76
"testString": ""
64
77
}
65
78
],
@@ -80,19 +93,22 @@
80
93
"description": [
81
94
"Build a full stack JavaScript app that is functionally similar to this: <a href='https://thread-paper.glitch.me/' target='_blank'>https://thread-paper.glitch.me/</a>.",
82
95
"Working on this project will involve you writing your code on Glitch on our starter project. After completing this project you can copy your public glitch url (to the homepage of your app) into this screen to test it! Optionally you may choose to write your project on another platform but it must be publicly visible for our testing.",
83
-
"Start this project on Glitch using <a href='https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-project-urlshortener/'>this link</a> or clone <a href='https://github.com/freeCodeCamp/boilerplate-project-urlshortener/'>this repository</a> on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!"
96
+
"Start this project on Glitch using <a href='https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-project-urlshortener/' target='_blank'>this link</a> or clone <a href='https://github.com/freeCodeCamp/boilerplate-project-urlshortener/'>this repository</a> on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!"
84
97
],
85
98
"tests": [
86
99
{
87
-
"text": "I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.",
100
+
"text":
101
+
"I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.",
88
102
"testString": ""
89
103
},
90
104
{
91
-
"text": "If I pass an invalid URL that doesn't follow the valid http://www.example.com format, the JSON response will contain an error instead.",
105
+
"text":
106
+
"If I pass an invalid URL that doesn't follow the valid http://www.example.com format, the JSON response will contain an error instead.",
92
107
"testString": ""
93
108
},
94
109
{
95
-
"text": "When I visit that shortened URL, it will redirect me to my original link.",
110
+
"text":
111
+
"When I visit that shortened URL, it will redirect me to my original link.",
96
112
"testString": ""
97
113
}
98
114
],
@@ -113,27 +129,32 @@
113
129
"description": [
114
130
"Build a full stack JavaScript app that is functionally similar to this: <a href='https://fuschia-custard.glitch.me/' target='_blank'>https://fuschia-custard.glitch.me/</a>.",
115
131
"Working on this project will involve you writing your code on Glitch on our starter project. After completing this project you can copy your public glitch url (to the homepage of your app) into this screen to test it! Optionally you may choose to write your project on another platform but it must be publicly visible for our testing.",
116
-
"Start this project on Glitch using <a href='https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-project-exercisetracker/'>this link</a> or clone <a href='https://github.com/freeCodeCamp/boilerplate-project-exercisetracker/'>this repository</a> on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!"
132
+
"Start this project on Glitch using <a href='https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-project-exercisetracker/' target='_blank'>this link</a> or clone <a href='https://github.com/freeCodeCamp/boilerplate-project-exercisetracker/'>this repository</a> on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!"
117
133
],
118
134
"tests": [
119
135
{
120
-
"text": "I can create a user by posting form data username to /api/exercise/new-user and returned will be an object with username and <code>_id</code>.",
136
+
"text":
137
+
"I can create a user by posting form data username to /api/exercise/new-user and returned will be an object with username and <code>_id</code>.",
121
138
"testString": ""
122
139
},
123
140
{
124
-
"text": "I can get an array of all users by getting api/exercise/users with the same info as when creating a user.",
141
+
"text":
142
+
"I can get an array of all users by getting api/exercise/users with the same info as when creating a user.",
125
143
"testString": ""
126
144
},
127
145
{
128
-
"text": "I can add an exercise to any user by posting form data userId(_id), description, duration, and optionally date to /api/exercise/add. If no date supplied it will use current date. App will return the user object with the exercise fields added.",
146
+
"text":
147
+
"I can add an exercise to any user by posting form data userId(_id), description, duration, and optionally date to /api/exercise/add. If no date supplied it will use current date. App will return the user object with the exercise fields added.",
129
148
"testString": ""
130
149
},
131
150
{
132
-
"text": "I can retrieve a full exercise log of any user by getting /api/exercise/log with a parameter of userId(_id). App will return the user object with added array log and count (total exercise count).",
151
+
"text":
152
+
"I can retrieve a full exercise log of any user by getting /api/exercise/log with a parameter of userId(_id). App will return the user object with added array log and count (total exercise count).",
133
153
"testString": ""
134
154
},
135
155
{
136
-
"text": "I can retrieve part of the log of any user by also passing along optional parameters of from & to or limit. (Date format yyyy-mm-dd, limit = int)",
156
+
"text":
157
+
"I can retrieve part of the log of any user by also passing along optional parameters of from & to or limit. (Date format yyyy-mm-dd, limit = int)",
137
158
"testString": ""
138
159
}
139
160
],
@@ -154,15 +175,16 @@
154
175
"description": [
155
176
"Build a full stack JavaScript app that is functionally similar to this: <a href='https://purple-paladin.glitch.me/' target='_blank'>https://purple-paladin.glitch.me/</a>.",
156
177
"Working on this project will involve you writing your code on Glitch on our starter project. After completing this project you can copy your public glitch url (to the homepage of your app) into this screen to test it! Optionally you may choose to write your project on another platform but it must be publicly visible for our testing.",
157
-
"Start this project on Glitch using <a href='https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-project-filemetadata/'>this link</a> or clone <a href='https://github.com/freeCodeCamp/boilerplate-project-filemetadata/'>this repository</a> on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!"
178
+
"Start this project on Glitch using <a href='https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-project-filemetadata/' target='_blank'>this link</a> or clone <a href='https://github.com/freeCodeCamp/boilerplate-project-filemetadata/'>this repository</a> on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!"
158
179
],
159
180
"tests": [
160
181
{
161
182
"text": "I can submit a FormData object that includes a file upload.",
162
183
"testString": ""
163
184
},
164
185
{
165
-
"text": "When I submit something, I will receive the file size in bytes within the JSON response.",
186
+
"text":
187
+
"When I submit something, I will receive the file size in bytes within the JSON response.",
0 commit comments