Code for the Scratch Jr Website
  • JavaScript 65.2%
  • HTML 21.1%
  • SCSS 9.1%
  • CSS 3.4%
  • EJS 1%
  • Other 0.2%
Find a file
devtechrg 51b4faa8c2
Some checks failed
Build and Deploy ScratchJr Website / lint (push) Has been cancelled
Build and Deploy ScratchJr Website / build (push) Has been cancelled
Build and Deploy ScratchJr Website / deploy (push) Has been cancelled
Merge pull request #369 from scratchfoundation/jessblake-west/devtechupdates
Updates to ScratchJr Site - Adding research page, curriculum page, updating general information and adding new images.
2026-06-24 16:54:11 -04:00
.github ci: build and test PRs without deploying 2026-06-23 14:01:48 -07:00
.vscode Fix spacing in two spots on info.jsx 2022-03-31 10:31:04 -04:00
bin
dev-server
src style clean in index.scss 2026-06-24 16:50:21 -04:00
static A few more content edits 2026-06-24 16:38:07 -04:00
templates feat: add enviroment conditions 2023-05-24 09:43:04 -04:00
.eslintignore
.eslintrc.js
.gitignore DevTech updates 2026-06-23 15:13:49 -04:00
.nvmrc Add .nvmrc file 2022-02-03 09:53:44 -05:00
.sass-lint.yml
.travis.yml [fix] install with --legacy-deps 2022-10-27 11:48:23 -04:00
LICENSE
Makefile
package-lock.json A few more content edits 2026-06-24 16:38:07 -04:00
package.json build: correct LLK URLs in package.json 2024-02-23 13:57:48 -08:00
README.md update react-slick 2018-04-30 15:41:09 -04:00
TRADEMARK Update TRADEMARK 2018-06-18 13:16:00 -04:00
webpack.config.js Add Literacy and Math Curricula 2017-09-18 10:10:44 -04:00

scratchjr-website

Code for the ScratchJr website

Build Status Greenkeeper badge

Before Getting Started

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

To Build

npm install
make build

Note: There will be a warning about a peer dependency on jquery. You can ignore it because slick-carousel is only used for stylesheets.

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