Web editor for P5.js, modified for workshops at Digital Playground.
Find a file
2016-07-13 12:07:05 -04:00
client fix merge conflicts 2016-07-13 12:07:05 -04:00
server add aria-tags and titles 2016-07-13 11:59:47 -04:00
static add srcdoc polyfill again, maybe this time it will work 2016-07-11 17:21:20 -04:00
.babelrc render editor 2016-05-03 16:13:04 -04:00
.eslintignore start to add eslint, add repository to package.json 2016-06-22 19:59:12 -04:00
.eslintrc fix a ton of eslint errors 2016-06-23 18:29:55 -04:00
.gitignore add nodemon, remove .env from being tracked 2016-06-22 18:48:45 -04:00
ecosystem.json add ecosystem.json for pm2 configuration 2016-06-28 17:37:02 -04:00
index.html add srcdoc polyfill again, maybe this time it will work 2016-07-11 17:21:20 -04:00
index.js add dotenv, start to add signup 2016-06-20 17:46:42 -04:00
nodemon.json add nodemon, remove .env from being tracked 2016-06-22 18:48:45 -04:00
package.json add aria-tags and titles 2016-07-13 11:59:47 -04:00
README.md fix bugs with saving/fetching projects 2016-06-29 12:52:16 -04:00
webpack.config.dev.js start to add production webpack 2016-06-27 18:46:08 -04:00
webpack.config.prod.js add production build 2016-06-28 14:41:15 -04:00

#p5.js Web Editor

This project is currently in the early stages of development! It will definitely be announced when it is in alpha/beta/etc.

##Development Installation

  1. Clone this repostory and cd into it
  2. $ npm install
  3. Install MongoDB and make sure it is running
  4. Create a file called .env in the root of this directory that looks like
MONGO_URL=mongodb://localhost:27017/p5js-web-editor
PORT=8000
SESSION_SECRET=whatever_you_want_this_to_be_it_only_matters_for_production

Or, if you don't want to do that, just ask me to send you mine. 5. $ npm start 6. Navigate to (http://localhost:8000)[http://localhost:8000] in your browser 7. Install the React Developer Tools. 8. Open and close the Redux DevTools using ctrl+h, and move them with ctrl+w

##Production Installation

  1. Clone this repostory and cd into it
  2. $ npm install
  3. Install MongoDB and make sure it is running
  4. Create a file called .env in the root of this directory that looks like
MONGO_URL=mongodb://localhost:27017/p5js-web-editor
PORT=8000
SESSION_SECRET=make_this_a_long-random_string_like_maybe_126_characters_long

Or, if you don't want to do that, just ask me to send you mine. 5. $ npm run build 6. $ npm run start:prod

###For Production Setup with PM2

  1. $ npm install -g pm2
  2. $ pm2 start ecosystem.json

##Contribution Guide I am currently open to contributors! Email me if you are looking for a task, or look at the open issues and reply that you are working on a task.

The p5.js Web Editor is built on a MERN stack - MongoDB, Express, React/Redux, and Node. For a reference to the file structure format I am using, please look at the Mern Starter and this comment.

This project does not use CSS Modules, but uses Sass. I like to follow BEM rules for CSS naming conventions, write OOSCSS with placeholders and mixins, and follow the 7-1 Pattern for Sass.

I'm new to using ESLint, but I decided on a configuration based on some popular React/Redux boilerplates. Open to suggestions on this. If in development, you're getting annoyed with ESLint, you can remove it from webpack.config.dev.js in the JavaScript loader, or disable any line from eslint by commenting at the end of the line // eslint-disable-line.

##Dump of links I'm saving for reference