Skip to content

alexmcmillan/jstogether

 
 

Repository files navigation

jstogether!

Local development

You will need these tools for local development:

And these for deployment:

Setup Environment

Be sure to check "Add to system path" when installing Python.

In order for github authentication to work, you'll need to create 2 environment variables:

  • GITHUB_CLIENT_ID: xxx
  • GITHUB_CLIENT_SECRET: xxx

Admins have these values.

Clone the repository:

git clone [email protected]:jstogether/jstogether.git

Install the NPM dependencies. This will also execute an NPM postinstall script (found in package.json), which will compile/build the project source and bundle into /public/bundle.js and /public/css/main.css using gulp tasks browserify and sass.

npm install

Start the gulp taskrunner and go nuts! This will start the watch task, so that whenever you save a source file it will automatically re-compile/bundle all relevant parts of the project, and restart the nodejs server (if required).

gulp

You can also run tasks individually like so:

  • gulp sass // compile SASS -> /public/css/main.css
  • gulp browserify // compile JS -> /public/bundle.js
  • gulp server // Run the node server

Deployment to production

Add the jstogether Heroku server as a git remote server (you will need permission to push to this server):

git remote add heroku [email protected]:jstogether.git

To push your local react branch to the Heroku server:

git push heroku master

Questions?

jstogether on reddit

jstogether on slack

About

Helper site for jstogether learning group

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.5%
  • CSS 5.5%