Giter Site home page Giter Site logo

jsdelivrbot / datawebsite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bulib/datawebsite

0.0 1.0 0.0 27.99 MB

This repository is construction site of our bu.edu/data website

License: MIT License

Ruby 0.56% HTML 17.73% CSS 50.18% JavaScript 31.21% Shell 0.31%

datawebsite's Introduction

dataWebsite

This repository hosts our data services website. The development build is at https://bulib.github.io/dataWebsite/

Contribute

Help us! To contribute checkout contribute.md.

Documentation

Background/hosting documentation is stored in this Data Services Website Transition pdf.

It contains the information regarding:

  • production and development environments
  • background on the technology used
  • code and site structure
  • post tags and key tasks
  • additional links

Additional documentation describing how to add on to the site will be made available in the wiki of this repository. It should (eventually) cover:

  • starting a new page
  • how to use categories and tags
  • understanding the website's workflow
  • calendar/feed updates

Usage

Initial Set-Up

The following commands (to be run in the terminal/command window) should be run once and will provide you with a runnable local version of the code with its dependencies.

$ git clone https://github.com/bulib/dataWebsite.git  # pull down a copy of the code
$ cd dataWebsite  # switch into the directory containing the site
$ gem install bundler  # install the Bundler gem
$ bundle install  # install dependencies for running jekyll

Running locally

Once you're set up, serve the site locally at localhost:4000 with the following:

$ bundle exec jekyll serve

Deployment

Configuring the Script

Noting that work should ideally be done in a separate branch (not master), when you're satisfied with the changes and how they appear locally, the ./_site/telegraph/dw-rebuild.sh script should help you deploy it to TEST and/or PRODUCTION.

Please make sure to update/double-check that the following variables are set correctly in the above dw-rebuild.sh script:

variable description
user BU username
local_path directory where your local version is located
local_build the folder within the project containing the output version
server the IS&T server hosting the dev and prod sites
dev_path path within that server where http://www-test.bu.edu/dev/data/ is hosted
production_path path within that server where http://www.bu.edu/data/ is hosted

Running the Script

To deploy, first ensure that

  • the script is executable ($ chmod +x _site/telegraph/dw-rebuild.sh)
  • you don't have any local uncommitted changes (you can use git stash then git stash pop if needed)

Then run it like so:

$ _site/telegraph/dw-rebuild.sh -d  # deploy to TEST
$ _site/telegraph/dw-rebuild.sh -p  # deploy to PROD

Note: the script will change git branches on you, and the gh-pages branch doesn't have anything in the telegraph folder. To change branches back to yours use the following:

$ git checkout branch_name

datawebsite's People

Contributors

tomhohenstein avatar mbcheng avatar ksilfen avatar jdkotula avatar mwardlib avatar atla5 avatar jsdelivrbot avatar

Watchers

 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.