Skip to content

Commit 8bf9c10

Browse files
authored
Merge pull request #1308 from processing/upgrade-node
Upgrade node version to 12.16.1, update Node installation docs
2 parents ab7f427 + e776bc0 commit 8bf9c10

File tree

12 files changed

+847
-327
lines changed

12 files changed

+847
-327
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12.16.1

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sudo: required
22
language: node_js
33
node_js:
4-
- "11.15.0"
4+
- "12.16.1"
55

66
cache:
77
directories:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:10.15.0 as base
1+
FROM node:12.16.1 as base
22
ENV APP_HOME=/usr/src/app \
33
TERM=xterm
44
RUN mkdir -p $APP_HOME

client/modules/IDE/components/About.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function About(props) {
3434
rel="noopener noreferrer"
3535
>
3636
<InlineSVG className="about__content-column-asterisk" src={asteriskUrl} alt="p5 asterisk" />
37-
Examples
37+
Examples
3838
</a>
3939
</p>
4040
<p className="about__content-column-list">
@@ -44,7 +44,7 @@ function About(props) {
4444
rel="noopener noreferrer"
4545
>
4646
<InlineSVG className="about__content-column-asterisk" src={asteriskUrl} alt="p5 asterisk" />
47-
Learn
47+
Learn
4848
</a>
4949
</p>
5050
</div>
@@ -57,7 +57,7 @@ function About(props) {
5757
rel="noopener noreferrer"
5858
>
5959
<InlineSVG className="about__content-column-asterisk" src={asteriskUrl} alt="p5 asterisk" />
60-
Libraries
60+
Libraries
6161
</a>
6262
</p>
6363
<p className="about__content-column-list">
@@ -67,7 +67,7 @@ function About(props) {
6767
rel="noopener noreferrer"
6868
>
6969
<InlineSVG className="about__content-column-asterisk" src={asteriskUrl} alt="p5 asterisk" />
70-
Reference
70+
Reference
7171
</a>
7272
</p>
7373
<p className="about__content-column-list">
@@ -77,7 +77,7 @@ function About(props) {
7777
rel="noopener noreferrer"
7878
>
7979
<InlineSVG className="about__content-column-asterisk" src={asteriskUrl} alt="p5 asterisk" />
80-
Forum
80+
Forum
8181
</a>
8282
</p>
8383
</div>

developer_docs/installation.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,31 @@ Follow these instructions to set up your development environment, which you need
66

77
_Note_: The installation steps assume you are using a Unix-like shell. If you are using Windows, you will need to use `copy` instead of `cp`.
88

9-
1. Install [node.js](https://nodejs.org/download/release/v11.15.0/) version 11.15.0 which also automatically installs the [npm](https://www.npmjs.org) package manager.
9+
1. Install Node.js. The recommended way is to Node through [nvm](https://github.com/nvm-sh/nvm). You can also install [node.js](https://nodejs.org/download/release/v12.16.1/) version 12.16.1 directly from the Node.js website.
1010
2. [Fork](https://help.github.com/articles/fork-a-repo) the [p5.js Web Editor repository](https://github.com/processing/p5.js-web-editor) into your own GitHub account.
1111
3. [Clone](https://help.github.com/articles/cloning-a-repository/) your new fork of the repository from GitHub onto your local computer.
1212

1313
```
1414
$ git clone https://github.com/YOUR_USERNAME/p5.js-web-editor.git
1515
```
1616

17-
4. Navigate into the project folder and install all its necessary dependencies with npm.
17+
4. If you are using nvm, run `$ nvm use` to set your Node version to 12.16.1
18+
5. Navigate into the project folder and install all its necessary dependencies with npm.
1819

1920
```
2021
$ cd p5.js-web-editor
2122
$ npm install
2223
```
23-
5. Install MongoDB and make sure it is running
24+
6. Install MongoDB and make sure it is running
2425
* For Mac OSX with [homebrew](http://brew.sh/): `brew tap mongodb/brew` then `brew install mongodb-community` and finally start the server with `brew services start mongodb-community` or you can visit the installation guide here [Installation Guide For MacOS](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/)
2526
* For Windows and Linux: [MongoDB Installation](https://docs.mongodb.com/manual/installation/)
26-
6. `$ cp .env.example .env`
27-
7. (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.
28-
8. `$ npm run fetch-examples` - this downloads the example sketches into a user called 'p5'
29-
9. `$ npm start`
30-
10. Navigate to [http://localhost:8000](http://localhost:8000) in your browser
31-
11. Install the [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en)
32-
12. Open and close the Redux DevTools using `ctrl+h`, and move them with `ctrl+w`
27+
7. `$ cp .env.example .env`
28+
8. (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.
29+
9. `$ npm run fetch-examples` - this downloads the example sketches into a user called 'p5'
30+
10. `$ npm start`
31+
11. Navigate to [http://localhost:8000](http://localhost:8000) in your browser
32+
12. Install the [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en)
33+
13. Open and close the Redux DevTools using `ctrl+h`, and move them with `ctrl+w`
3334

3435
## Docker Installation
3536

docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
# uncomment the following lines if you don't want export all of the variables
1515
# defined in your .env file for testing
1616
# env_file:
17-
# - "$PWD/.env"
17+
# - "$PWD/.env.production"
1818
environment:
1919
- API_URL
2020
- MONGO_URL
@@ -38,7 +38,9 @@ services:
3838
- GOOGLE_SECRET
3939
- EXAMPLE_USER_EMAIL
4040
- EXAMPLE_USER_PASSWORD
41-
- FORCE_TO_HTTPS
41+
- ML5_EXAMPLES_USERNAME
42+
- ML5_EXAMPLES_PASS
43+
- ML5_EXAMPLES_EMAIL
4244
# you can either set this in your .env or as an environment variables
4345
# or here YOU CHOOSE
4446
# - MONGO_URL=mongodb://mongo:27017/p5js-web-editor

0 commit comments

Comments
 (0)