mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Standalone web client for Scratch
ad8d32474f
Mobile styling is from the frameless framework from #198 (ht @rthorn!). Localization also in as well. Use `white-space: normal` instead of `inline-block` Prep for componetizing Sub-Nav - Fixed top banner extra margin - Updated HTML containers and SCSS Add subnavigation component Added more content - More projects (still need photos) - Added section about Studios (need to create links to studios) WIP: adding frameless to HOC page Remove Grid elements on Sections Made the implmentation more granular with breakpoints in mind. More formatting adjustments Cards in box now working. Update responsive behavior and spacing Updated all elements to respond to new grid system breakpoints. Update content and organize HOC assets - Added studios section with studio elements - Reorganized the image assets for HOC 2015 Fix SCSS linting errors Update addtional activities photo assets Generalize `info` class on subnav Move onto one line left-align single-column studio links Add strings for localization Some rebase conflicts Code review feedback ht @thisandagain! Fix alignment of studios Keep `inline-block` for mobile |
||
---|---|---|
server | ||
src | ||
static | ||
.eslintrc | ||
.gitignore | ||
.sass-lint.yml | ||
.travis.yml | ||
en.json | ||
languages.json | ||
Makefile | ||
package.json | ||
README.md | ||
webpack.config.js |
scratch-www
Standalone web client for Scratch
To Build
npm install
npm run build
During development, you can use npm run watch
to cause any update you make to files in either ./static
or ./src
to trigger a rebuild of the project.
To Run
npm start
or to start and watch at once
npm run dev
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
# Stops all `start` and `watch` processes
npm stop
Configuration
npm start
and npm run watch
can be configured with the following environment variables
Variable | Default | Description |
---|---|---|
API_HOST |
https://api.scratch.mit.edu |
Hostname for API requests |
NODE_ENV |
null |
If not production , app acts like development |
PORT |
8333 |
Port for devserver (http://localhost:XXXX) |
PROXY_HOST |
https://scratch.mit.edu |
Pass-through location for scratchr2 |
To Test
npm test