No description, website, or topics provided.
JavaScript CSS Python HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
images
js
lib
.gitignore
.python-version
README.md
favicon.ico
gulpfile.js
index.html
package.json
requirements.txt

README.md

arush

Redesign of the Adrenaline Rush website.

Build Process

First off, a feeds.js file needs to be generated with the social_feed module. It'll contain an object of YouTube and Instagram feed items.

$ python lib/social_feed.py

The file will get dumped into /js/. The next step is for Gulp to aggregate everything into the /build/ directory.

$ gulp build --env production

If you pass in --env local, then it'll avoid minifying the JavaScript and CSS files, though they'll still get concatenated.

Local Development

You're going to need to install all of the dependencies first.

$ pip install -r requirements.txt
$ npm install

The watch Gulp task is pretty handy for local development. It'll monitor for file changes and build when necessary.

$ gulp watch --env local

For the API endpoints (really just /contact/), you can just let Flask do its barebones thing.

$ python lib/api.py

Now to serve the build files. Just running a command line Python server would be simplest.

$ cd build/
$ python -m http.server 8000