Git Product home page Git Product logo

open-transit-indicators's Introduction

open-transit-indicators

An open-source tool to support transport agencies in planning and managing public transit systems

Build Status

Travis CI Build Status

Selenium Test Status

Installation

Vagrant

If you're using Vagrant, then installation is as simple as cloning the repo and then issuing vagrant up from the root of the repository directory.

To change the default amount of memory allocated to the vagrant machine, set the environment variable OTI_VAGRANT_MEMORY to the preferred size, in MB.

Server installation

If you're installing directly onto a dedicated server, follow these steps after cloning the repo on an ubuntu machine version 12.04:

  1. Run the following commands:
sudo apt-get update
sudo apt-get -y install git
  1. Clone the project into the directory you want the project
cd <DIRECTORY TO DOWNLOAD/INSTALL PROJECT>
git clone -b master https://github.com/WorldBank-Transport/open-transit-indicators.git
  1. Edit deployment/provision.sh and change the line saying: PROJECTS_DIR="/projects". The text /projects should be replaced with the absolute path of the location where you've cloned the repository. For example, if your repository folder is located in /home/myusername/open-transit-indicators, the line should become PROJECTS_DIR="/home/myusername". You can use pwd to determine this directory.

  2. Move into the open-transit-indicators directory with the following command:

cd open-transit-indicators
  1. From the repository folder (project directory), issue the command (you may need to enter your password):
  • For development: sudo ./deployment/provision.sh development
  • For production: sudo ./deployment/provision.sh production

AMI Generation

If you want to generate an Amazon Web Service's (AWS) Amazon Machine Image (AMI) you can use Packer to handle the provisioning.

Use the following instructions to do so:

  1. Create an AWS account if you do not have one already
  2. Get the API keys for a new user or an existing user in your AWS account
  3. Download and install Packer
  4. Navigate to the deployment/packer directory
  5. Copy the open-transit-vars.json.example file and save it as open-transit-vars.json
  6. Edit open-transit-vars.json with the API keys downloaded in step 2
  7. Run the following command to generate a new AMI: packer build -var-file=open-transit-vars.json open-transit-indicators.json PLEASE NOTE: Running this command will cause resources to be created in AWS and will cost money
  8. Once the process finishes installing (could take up to an hour), make note of the AMI ID
  9. Launch the AMI using the AWS EC2 management console and browse to the public DNS hostname provided by Amazon

open-transit-indicators's People

Contributors

cloudniner avatar kshepard avatar flibbertigibbet avatar moradology avatar notthatbreezy avatar ddohler avatar echeipesh avatar sharph avatar lossyrob avatar npztest avatar jbranigan avatar

Watchers

Pascal Maniraho avatar 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.