Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ There are three options for local setup:

- [Docker](/docs/setup/docker_setup.md) (recommended)
- Native (coming soon)
- AWS Virtual Machine (coming soon)
- [AWS Virtual Machine](/docs/setup/aws_vm_setup.md)

## Finding An Issue
* Now you have everything setup, you will need to find issues to work on. **Operation Code** uses Github's built in issue tracker. A listing of all our issues can be found [here](https://github.com/OperationCode/operationcode_backend/issues).
Expand Down
66 changes: 66 additions & 0 deletions docs/setup/aws_vm_setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Virtual Machine

A virtual machine is defined as a computer file, typically called an image, that behaves like an actual computer.

## Create AWS VM
(Using Ubuntu 16.04 on AWS)
Make sure to open these ports in your security group
- Port 22
- Port 3000
When the VM spins up, SSH into it.

##
(from your VM)
Fork https://github.com/operationcode/operationcode_backend

```bash
git clone https://github.com/[YOUR-GITHUB-NAME]/operationcode_backend.git

cd operationcode_backend

git remote add upstream https://github.com/OperationCode/operationcode_backend.git

sudo apt-get install make
```

## Install Docker
```bash
sudo apt-get update

sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"

sudo apt-get update

sudo apt-get install docker-ce
```

## Install Docker Compose

```bash
sudo curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
```

## Setting up the Dev Environment
```bash
sudo make setup
```

(if you want to try running the tests, run this command)

```bash
sudo make test
```

Now navigate to http://<vm_public_ip>:3000 and you should see the "You're running on Rails" page!