Giter Site home page Giter Site logo

vagrant's Introduction

Quick Start Guide

1 - Install dependencies (Docker, VsCode, Vagrant, Ansible)

  1. Download and install Docker.
  2. Download and install VSCode.
  3. Download and install Vagrant.
  4. [Mac/Linux only] Install Ansible.
  5. Run ansible-galaxy install -r requirements.yml in this directory to get the required Ansible roles.
  6. Run vagrant up --provider=docker --provision to build the VM.
  7. Run vagrant ssh-config this will output valid configuration for an SSH config file to SSH into the running Vagrant machine from ssh directly.
  8. Copy output from above command and paste it in ~/.ssh/config file
cat ~/.ssh/config

Host node
  HostName 127.0.0.1
  User vagrant
  Port 2222
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile /Users/asharma/git/vagrant/.vagrant/machines/ node/docker/private_key
  IdentitiesOnly yes
  LogLevel FATAL
  ForwardAgent yes

Note for Windows users: This guide assumes you're on a Mac or Linux host. Windows hosts are unsupported at this time.

2 - Run Application

  1. Open Remote Explorer in VSCode, select node, while selecting path, put /vagrant
  2. Run nodemon app.js

vagrant's People

Contributors

sharmaansh21 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.