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
We'll be working on a branch of our [firelist-react](https://github.com/how-to-firebase/firelist-react) repo named [challenge-functions](https://github.com/how-to-firebase/firelist-react/tree/challenge-functions).
12
+
13
+
## Localhost installation
14
+
15
+
Pull [the repo](https://github.com/how-to-firebase/firelist-react) directly from GitHub...
Update the following files with your own project details:
26
+
27
+
*`/.firebaserc`
28
+
*`/public/environments/environment.dev.js`
29
+
*`/public/environments/environment.js`
30
+
*`/functions/environments/environment.dev.js`
31
+
*`/functions/environments/environment.js`
32
+
33
+
## Run the tests
34
+
35
+
Once you're on the branch, make sure to run `yarn` or `npm install` to get your Node.js dependencies.
36
+
37
+
Then `cd` into your `functions` directory and run `yarn` or `npm install` again.
38
+
39
+
Make sure that you've installed [nvm for Linux/macOS](https://github.com/creationix/nvm), [nvm for Windows](https://github.com/coreybutler/nvm-windows) or some other tool to switch between Node.js versions.
40
+
41
+
Use `nvm install 6.14.2` then `nvm use 6.14.2` to switch to Node version 6.14.2.
42
+
43
+
The Node version is important to make sure that your tests run in an identical environment to that of the Cloud Functions runtime.
44
+
45
+
Then run `yarn test` or `npm test` to run your tests.
46
+
47
+
```text
48
+
yarn
49
+
cd functions
50
+
nvm install 6.14.2
51
+
nvm use 6.14.2
52
+
node --version //should read out 6.14.2
53
+
yarn test
54
+
```
55
+
56
+
## Complete the challenge
57
+
58
+
Search the codebase for `Challenge Functions` to find all of the challenges.
59
+
60
+
Work through the challenges in order from 01 to 06
Copy file name to clipboardExpand all lines: cloud-messaging/challenge.md
-4
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,6 @@
6
6
7
7
We'll be working on a branch of our [firelist-react](https://github.com/how-to-firebase/firelist-react) repo named [firebase-messaging](https://github.com/how-to-firebase/firelist-react/tree/master).
8
8
9
-
## Codesandbox
10
-
11
-
Simply open up the [CodeSandbox.io](https://codesandbox.io/s/github/how-to-firebase/firelist-react/tree/firebase-messaging) project :\)
12
-
13
9
## Localhost installation
14
10
15
11
Pull [the repo](https://github.com/how-to-firebase/firelist-react) directly from GitHub...
We'll be working on a branch of our [firelist-react](https://github.com/how-to-firebase/firelist-react) repo named [challenge-storage](https://github.com/how-to-firebase/firelist-react/tree/challenge-storage).
12
+
13
+
## Localhost installation
14
+
15
+
Pull [the repo](https://github.com/how-to-firebase/firelist-react) directly from GitHub...
0 commit comments