Git Product home page Git Product logo

cbe-ansible's Introduction

cbe-ansible

This project consists of Ansible scripts to install and configure infrastructure and application code for the Community Budget Explorer.

The CBE consists of 2 web applications:

  • A main CBE application that interacts with both administrative users and budget site users
  • A data service that delivers budget and other data to the application and processes uploaded files and API data

This project can be used to install either of the two or both of them at once in a development or production environment. It is set up to work with Vagrant on a local machine or to set up on a remote host.

Get started

Setting up an environment is straightforward, but may take some time, particularly installation steps via composer and npm.

Getting started on Vagrant

To get started on Vagrant, simply check out this repository, change the IP address in Vagrantfile if desired and run

vagrant up

from inside the main repository directory. Then vagrant ssh into the virtual server and run the following:

cd /var/www
ansible-playbook -i "localhost," -c local playbooks/all.yml

Note that the comma following localhost is required.

IMPORTANT: Do not run this playbook after beginning development work - it can remove modified application files.

Getting started on a remote server

The first step is to set up a server running Ubuntu 14.04 LTS - no guarantees that anything here will work on other systems.

Log in to the server, install git, clone this repository, change to the main repository directory and run:

/bin/bash bootstrap.sh
ansible-playbook -i "localhost," -c local playbooks/all.yml

Note that the comma following localhost is required.

IMPORTANT: Do not run this playbook after beginning development work - it can remove modified application files.

Adding sample data

If you would like to initialize the CBE with some sample data, you can also run:

cd /var/www/cbe
php artisan migrate --seed

cbe-ansible's People

Contributors

ejaxon avatar

Watchers

James Cloos avatar  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.