Code Monkey home page Code Monkey logo

totangular's Introduction

Toto-Vagrant

This is a basic template to help you get up and running with Toto in a Vagrant dev environment.

Getting Started

Before you can use this project, make sure you have Virtual Box and Vagrant installed. Once you've installed both tools, follow these steps:

  1. Clone this repo.
  2. From the project directory run the command vagrant up.
  3. Wait for Vagrant to configure the VM

Once you've completed these steps, the contents of the static directory will be hosted by Nginx at http://42.42.42.42. By default, this is a blank page with a few script tags to get you set up with toto.js. The service in the service directory will be listening at http://42.42.42.42/service. You can shutdown the environment with vagrant halt from anywhere in the project directory structure. Run vagrant without any arguments for a list of available commands.

Commands

There are a few special commands available to help you out:

  • vagrant toto <command> - Passes <command> to your Toto service so you can easily --restart after you make changes (or run your service with other options). This command actually runs service/services.sh, which acts as a proxy to your Toto service and makes it easy to manage multiple services simultaneously.
  • vagrant nginx <signal> - Calls nginx -s <signal> in the VM. In the special case where <signal> is start, this will call nginx.

Additional Setup

Along with the usual Vagrant configuration and customization available to you, there are a few shortcuts to make basic configuration a bit easier.

  • The nginx-conf directory is simlinked to the usual Ubuntu /etc/nginx/sites-enabled directory for easy Nginx setup.
  • setup-files/setup.sql will be run after MySQL is installed in the dev environment to facilitate database creation and test data population.
  • setup-files/python.sh will be run after pip is installed so that you can install any extra packages or modules your service requires.
  • Finally, setup-files/post-setup.sh will run after all other steps are complete for any final cleanup.

Note: all scripts are run in the VM as root.

For more advanced setup, check out the documentation for Vagrant and Toto.

totangular's People

Contributors

jeremyot avatar mgamini avatar

Watchers

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