Code for the Scratch Jr Website
Find a file
chrisgarrity 542c33808f Add animated genres curriculum
curricular/full.css contains styles for printing any curriculum.

moved added print-footer to teach to share between all curricula.

May be able to share print css between curricula and assessment pages, but not counting on it.
2017-09-18 10:10:42 -04:00
bin Setup Travis correctly the first time 2016-09-22 18:40:53 -04:00
dev-server Setup Travis correctly the first time 2016-09-22 18:40:53 -04:00
src Add animated genres curriculum 2017-09-18 10:10:42 -04:00
static Add animated genres curriculum 2017-09-18 10:10:42 -04:00
.eslintignore Sync master content (#44) 2017-04-21 08:31:38 -04:00
.eslintrc.js Sync master content (#44) 2017-04-21 08:31:38 -04:00
.gitignore ignore build directory 2016-07-12 10:27:32 -04:00
.sass-lint.yml Fixing Linter errors and styles 2016-09-06 10:17:25 -04:00
.travis.yml Update travis to node 6 2017-08-17 09:40:38 -04:00
LICENSE Update license and trademark files 2017-08-16 16:50:48 -04:00
Makefile Sync master content (#44) 2017-04-21 08:31:38 -04:00
package.json Add animated genres curriculum 2017-09-18 10:10:42 -04:00
README.md docs(readme): add Greenkeeper badge 2017-08-17 01:27:10 +00:00
TRADEMARK Update license and trademark files 2017-08-16 16:50:48 -04:00
webpack.config.js Add animated genres curriculum 2017-09-18 10:10:42 -04:00

scratchjr-website

Greenkeeper badge

Code for the Scratch Jr Website

Before Getting Started

  • Make sure you have node (v4.2 or higher) and npm installed

To Build

npm install
make build

To Run

npm start

During development, npm start watches any update you make to files in either ./static or ./src and triggers a rebuild of the project. In development the build is stored in memory, and not served from the ./build directory.

When running npm start, here are some important log messages to keep an eye out for:

  • webpack: bundle is now VALID. the bundle has been loaded into memory and is now viewable in the browser. This will show up both once npm start has completed its setup, and also once updates you make to files have been re-compiled for viewing in the browser.
  • webpack: bundle is now INVALID. if you see this, then it means you have made updates to files that are still being compiled for browser viewing. Pages will still be viewable, but they will not see any updates you made yet.

Once running, open http://localhost:8333 in your browser. If you wish to have the server reload automatically, you can install either nodemon or forever.

To stop

Use ^C to stop the node process npm start starts.

Configuration

npm start can be configured with the following environment variables

Variable Default Description
NODE_ENV null If not production, app acts like development
PORT 8333 Port for devserver (http://localhost:XXXX)

Deploy Environment Variables

Variable Default Description
FASTLY_SERVICE_ID '' Fastly service ID for bin/configure-fastly.js
FASTLY_API_KEY '' Fastly API key for bin/configure-fastly.js
FASTLY_ACTIVATE_CHANGES false Activate changes and purge all after configuring
AWS_ACCESS_KEY_ID '' AWS access key id for S3
AWS_SECRET_ACCESS_KEY '' AWS secret access key for S3
S3_BUCKET_NAME '' S3 bucket name to deploy into