Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
config
rethinkdb_data
src
test
.babelrc
.editorconfig
.eslintignore
.eslintrc
.gitignore
.sublime-project
LICENSE
README.md
gulpfile.babel.js
package.json
scrape.py
server.js

README.md

Scaffold

A universal JavaScript scaffold project

Development

Make sure you're using Mac/Linux. Many of the npm dependencies for this project don't play nicely with Windows.

Make sure you have Node Version Manager (nvm) installed. Run nvm install 6 to install the latest version of Nodejs.

Make sure you npm install.

Running

To start the server in development mode, use npm run dev. The server will start on port 8080. You shouldn't need to restart the server in this mode even if you make changes, as the server will update as you save. Some functionality things will even update without you having to refresh. If you run into any issues though, it might be a good idea to refresh the page or restart the server.

"Production" mode

You may notice that styles appear to jump when you load the page in development mode. This is because styles are injected into the page by the JavaScript bundle to make hot reloading of styles possible. Production mode, on the other hand, does not do this.

npm run prod will start the server in production mode. This slower and won't automatically reload, but makes some optimisations, such as separating out the CSS into a separate file, and minifying the JavaScript bundle.

You can’t perform that action at this time.