Giter VIP home page Giter VIP logo

storymapjs's Introduction

Setting up a development environment

Install virtualenvwrapper

Install Node.js

# Install LESS and UglifyJS globally (you may need to use 'sudo npm' instead)
npm install -g less
npm install -g uglify-js@1

# Change into the parent directory containing your repositories
cd path_to_your_repos_root

# Clone repositories
git clone https://github.com/NUKnightLab/fablib.git
git clone https://github.com/NUKnightLab/storymapjs.git

# Change into the project repository
cd storymapjs

# Create a virtual environment
mkvirtualenv storymapjs

# Activate the virtual environemnt
workon storymapjs
    
# Install python requirements
pip install -r requirements.txt

# Run the development server
fab serve

Files located in the source directory are assets for storymapjs itself.

Files located in the website directory are for the storymapjs website.

Edit config.json as needed to modify the staging and deployment process.

Deploying updates the the CDN

Changes made to javascript and CSS must be deployed to cdn.knightlab.com to be used. If you haven't yet, check out that Git repository to the same directory that contains your storymapjs respository.

To stage your changes without forcing latest users ahead, type fab stage This runs a build, copies the files into a versioned directory in your local cdn.knightlab.com repository, and tags the last commit with a version number.

To stage your changes to latest, type fab stage_latest This copies files from the versioned directory in your local cdn.knightlab.com respository into the corresponding latest directory.

You have to push and deploy all CDN changes separately.

Deploying to S3 (storymapjs.knightlab.com)

You need the secrets repository to deploy to S3. If you haven't yet, check out that Git repository to the same directory that contains your storymapjs respository.

To update S3, type fab deploy. This runs a build using the latest version tag and synchronizes the files in the build directory with S3.

storymapjs's People

Contributors

joegermuska avatar zachwise avatar thejordan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.