GithubHelp home page GithubHelp logo

cavd's Introduction

Vagrant for Devloping Ruby on Rails and React within Coder Academy

Installation

Required:

First you will need to install virtual machine (VirtualBox). This will be used to host a virtual Ubuntu virtual machine for developing on.

Then install Vagrant https://www.vagrantup.com/downloads.html. This allows us to automatically customise the virtual machine so that it has all the software we need.

Auto Install (MacOS and Linux)

curl -sL https://raw.githubusercontent.com/jayy-lmao/CAVD/master/.get-cavd | bash -

Once the scripts are run you will be able to use cavdev in your terminal.

Manual Install (MacOS, Linux, and Windows)

Download this repository, make sure you are in the same folder as 'Vagrantfile'in terminal (MacOS/Linux) or Powershell (Windows).

Command Action
vagrant up Boots the machine
vagrant halt Shuts down the machine (Do this when not using vagrant to save RAM)
vagrant ssh Opens a terminal inside of the vagrant
vagrant destroy Deletes the machine

If you want to be able to access from anywhere on MacOS/Linux you can run ./install to install shortcuts.

Remember you must be in the same folder as the Vagrantfile in order to run it.

NOTE FOR WINDOWS USERS if you are getting a Permission denied (publickey). error, you need to go into Settings > Apps & features > Manage optional features and uninstall OpenSSH (no need to be alarmed, you can always add it back).

Development (Students and Trainers of Coder Academy)

Adding packages

If there are changes you would like to add (additional gems, packages etc) then:

  1. Fork the package into your own repo
  2. Try the commands you will run as root (using su)
  3. If all commands run succesfully, download a copy of https://github.com/jayy-lmao/CA-Ubuntu-Setup/blob/master/bootstrap.sh to this directory and add your commands to it. (Please try and follow the convention for the install of existing packages)
  4. Destroy the vagrant with vagrant destroy then use vagrant up to test if the new bootstrap.sh is able to load the package you want.
  5. If all is well, submit a pull request to https://github.com/jayy-lmao/CA-Ubuntu-Setup/blob/master/bootstrap.sh for the new bootstrap.sh and I will approve it :)

Adding/Removing Ports

All port fowarding can be found in the Vagrantfile in the form config.vm.network :forwarded_port, guest: 3000, host: 3000 Where the guest port is the one inside of the vagrant (the port the running program says it's running on), and the host is the one on your computer (the one you would type into the browser).

cavd's People

Contributors

jayy-lmao avatar nclarx avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

nclarx

cavd's Issues

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.