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
Copy file name to clipboardExpand all lines: developer_docs/installation.md
+20-2Lines changed: 20 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,8 @@ _Note_: The installation steps assume you are using a Unix-like shell. If you ar
26
26
* For Windows and Linux: [MongoDB Installation](https://docs.mongodb.com/manual/installation/)
27
27
7.`$ cp .env.example .env`
28
28
8. (Optional) Update `.env` with necessary keys to enable certain app behaviors, i.e. add Github ID and Github Secret if you want to be able to log in with Github.
29
-
9.`$ npm run fetch-examples` - this downloads the example sketches into a user called 'p5'
29
+
9. Run `$ npm run fetch-examples` to download the example sketches into a user called 'p5'. Note that you need to configure your GitHub Credentials, which you can do by following the [Github API Configuration](#github-api-configuration) section.
30
+
30
31
10.`$ npm start`
31
32
11. Navigate to [http://localhost:8000](http://localhost:8000) in your browser
32
33
12. Install the [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en)
@@ -47,7 +48,8 @@ Note that this takes up a significant amount of space on your machine. Make sure
5. (Optional) Update `.env` with necessary keys to enable certain app behavoirs, i.e. add Github ID and Github Secret if you want to be able to log in with Github.
50
-
6.`$ docker-compose -f docker-compose-development.yml run --rm app npm run fetch-examples`
51
+
6.`$ docker-compose -f docker-compose-development.yml run --rm app npm run fetch-examples` - note that you need to configure your GitHub Credentials, which you can do by following the [Github API Configuration](#github-api-configuration) section.
52
+
51
53
52
54
Now, anytime you wish to start the server with its dependencies, you can run:
53
55
@@ -80,3 +82,19 @@ name, you can also set it using this variable. I.e.:
80
82
For more information on using a custom domain, see this documentation link:
In this application, GitHub credentials are used for:
89
+
* Authentication with GitHub
90
+
* Importing the p5.js examples to your local database
91
+
* Rendering the 404 pages
92
+
93
+
If you are working on a part of the application that requires one of the above uses, then you will need to get GitHub API credentials.
94
+
95
+
When you go to the Developer settings in your GitHub account, you will see that you can create two types of Apps: `GitHub Apps` and `OAuth Apps` ([differences between GitHub Apps and OAuth Apps](https://docs.github.com/en/free-pro-team@latest/developers/apps/differences-between-github-apps-and-oauth-apps)). This project requires you to make an `OAuth App`. After clicking on "New OAuth App", you will need to fill in the following fields:
0 commit comments