Skip to content

Commit 4b5ee79

Browse files
Merge branch 'fullstack-hy2020:source' into brazilian-portuguese-translation
2 parents 25f0bec + b0c2210 commit 4b5ee79

File tree

7 files changed

+166
-89
lines changed

7 files changed

+166
-89
lines changed

src/content/3/en/part3b.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ Note that the directory paths in the script <i>build:ui</i> depend on the locati
399399
400400
#### Render
401401
402+
Note: When you attempt to deploy your backend to Render, make sure you have a seperate repository for the backend and deploy that github repo through Render, attempting to deploy through your Fullstackopen repository will often throw "ERR path ....package.json".
403+
402404
In case of Render, the scripts look like the following
403405
404406
```json

src/content/4/en/part4b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ Full stack development is <i> extremely hard</i>, that is why I will use all the
10061006
- <i>I will write lots of _console.log_ statements to make sure I understand how the code and the tests behave and to help pinpoint problems</i>
10071007
- If my code does not work, I will not write more code. Instead, I start deleting the code until it works or just return to a state when everything was still working
10081008
- <i>If a test does not pass, I make sure that the tested functionality for sure works in the application</i>
1009-
- When I ask for help in the course Discord or Telegram channel or elsewhere I formulate my questions properly, see [here](https://fullstackopen.com/en/part0/general_info#how-to-ask-help-in-discord-telegam) how to ask for help
1009+
- When I ask for help in the course Discord or Telegram channel or elsewhere I formulate my questions properly, see [here](https://fullstackopen.com/en/part0/general_info#how-to-get-help-in-discord-telegram) how to ask for help
10101010
10111011
</div>
10121012

src/content/6/en/part6d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ The notification is displayed for five seconds.
770770

771771
#### Exercise 6.24.
772772

773-
As stated in exercise 6.20, the server requires that the content of the anecdote to be added is at least 5 characters long. Now implement error handling for the insertion. In practice, it is sufficient to display a notification to the user in case of a failed POST request:
773+
As stated in exercise 6.21, the server requires that the content of the anecdote to be added is at least 5 characters long. Now implement error handling for the insertion. In practice, it is sufficient to display a notification to the user in case of a failed POST request:
774774

775775
![browser showing error notification for trying to add too short of an anecdoate](../../images/6/67new.png)
776776

src/content/8/en/part8c.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ In the Apollo Explorer, the header is added to a query like so:
346346

347347
![apollo explorer highlighting headers with authorization and bearer token](../../images/8/24x.png)
348348

349-
Modify the startup of the backend by giving the function that handles the startup [startStandaloneServer](https://www.apollographql.com/docs/apollo-server/api/standalone/) another parameter [context](https://www.apollographql.com /docs/apollo-server/data/context/)
349+
Modify the startup of the backend by giving the function that handles the startup [startStandaloneServer](https://www.apollographql.com/docs/apollo-server/api/standalone/) another parameter [context](https://www.apollographql.com/docs/apollo-server/data/context/)
350350

351351
```js
352352
startStandaloneServer(server, {
@@ -564,7 +564,7 @@ Add user management to your application. Expand the schema like so:
564564
```js
565565
type User {
566566
username: String!
567-
favouriteGenre: String!
567+
favoriteGenre: String!
568568
id: ID!
569569
}
570570

@@ -581,7 +581,7 @@ type Mutation {
581581
// ...
582582
createUser(
583583
username: String!
584-
favouriteGenre: String!
584+
favoriteGenre: String!
585585
): User
586586
login(
587587
username: String!

src/content/8/en/part8d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ const client = new ApolloClient({
189189
})
190190
```
191191

192-
The field *uri* that was previously used when creating the *client* object has been replaced by the field *link*, which defines in a more complicated case how Apollo is connected to the server. The server url is now wrapped using the function [createHttpLink](https://www.apollographql.com/docs/link/links/http.htm) into a suitable httpLink object. The link is modified by the [context](https://www .apollographql.com/docs/react/api/link/apollo-link-context/#overview) defined by the authLink object so that a possible token in localStorage is [set to header](https://www.apollographql.com/docs/react/networking/authentication /#header) <i>authorization</i> for each request to the server.
192+
The field *uri* that was previously used when creating the *client* object has been replaced by the field *link*, which defines in a more complicated case how Apollo is connected to the server. The server url is now wrapped using the function [createHttpLink](https://www.apollographql.com/docs/link/links/http.htm) into a suitable httpLink object. The link is modified by the [context](https://www.apollographql.com/docs/react/api/link/apollo-link-context/#overview) defined by the authLink object so that a possible token in localStorage is [set to header](https://www.apollographql.com/docs/react/networking/authentication/#header) <i>authorization</i> for each request to the server.
193193

194194
Creating new persons and changing numbers works again. There is however one remaining problem. If we try to add a person without a phone number, it is not possible.
195195

0 commit comments

Comments
 (0)