From 1b1b8a90ad3121e2da8158aead771c72e0b65703 Mon Sep 17 00:00:00 2001 From: Jesse Washburn <142361664+jessewashburn@users.noreply.github.com> Date: Fri, 27 Dec 2024 14:41:05 -0500 Subject: [PATCH 1/7] Create nation-planet-instructions.md first draft --- nation-planet-instructions.md | 117 ++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 nation-planet-instructions.md diff --git a/nation-planet-instructions.md b/nation-planet-instructions.md new file mode 100644 index 0000000000..f693ab727c --- /dev/null +++ b/nation-planet-instructions.md @@ -0,0 +1,117 @@ +# Step 1 : Set up Google Cloud VM + +- https://console.cloud.google.com/ +- Log in with ole email +- Sign up, choose personal, for org use. You may need a credit card/debit card to verify you are a real person. A charge and refund in the amount of $1.9_ will show up on your card transaction history. You will need the code in the purchase description to verify. +- There’s no risk of getting charged in the future if you do not click on “Activate full account”. If you are within the US, set up a privacy.com card if you want to be extra cautious. +- Search for “Compute Engine API,” enable it, wait for it to activate +- Search for “Metadata” and look for “Metadata Compute Engine”, go to “SSH KEYS” +- add your public key there, you’ll need to append the key with ` name` to satisfy google’s format rule (Adding it manually to authorzied_keys would not work as it will get it overridden over time…) +- Add other people’s keys here as well: https://docs.google.com/document/d/e/2PACX-1vRgf6WtvM7SyfpL3T826jWuCWiCzOei8PVwzOmyIh8SpOpZTJxe3rJC_kLty-gt5ILv05ERCPzorxpr/pub +- Go to “Compute Engine”, click on “Create Instance” button +- Select a location near you, price typically ranges between $25 - $35 a month +- Leave everything else to default, 4GB of RAM and Debian 12 works for us +- Click on the “Create” button + +- Once the instance is created, try to ssh into the vm from your terminal +- Search for “Firewall VPC Network”, clicko on “CREATE FIREWALL RULE” button +- Name: planetdev-rules +- Action on match - Allow - “Targets” dropdown - select “All instances in the network” +- Under “Source IPv4 Range”, enter “0.0.0.0/0” +- Under ”Protocols and ports”, check TCP, enter “2200,3000,5000” (ports for couchdb, default ng serve port, and chatpi) +- Click on the blue “Create” button +- Tools installation +- Install git, unzip apt-get update && apt-get install git unzip +- Install docker https://docs.docker.com/engine/install/debian/#install-using-the-repository +- Follow https://open-learning-exchange.github.io/#!pages/vi/vi-docker-development-tutorial.md +- Ensure you are running as a regular user instead of root user while installing node.js +- When you are ready to run `ng serve`, start up a screen session with `screen`, run `ng serve`, once you verified it’s working, use `ctrl + a` then press `d` to detach and keep it running +- Configure your planet as a nation (instead of community, select nation from the dropdown), please avoid password that are too simple or common (12345, abc, 000, admin) +- Share your vm IP address and username/pw with us! + +# Step 2 : Set up your dev environment + +Install the following extensions: +Remote Explorer (Microsoft) +Remote Development (Microsoft) + +![image](https://github.com/user-attachments/assets/8b19e456-27a6-4616-b4d5-a1b2dbeea5ab) + +Under the Remote explorer tab, add new remote connection via the plus sign. +Type in the IP of your cloud VM +Specify the location of your ssh config when prompted +Select Linux as the platform of the host machine +Open the Planet folder to begin editing. +Use the terminal to run Git commands as usual + +# Troubleshooting + +Permission denied (publickey). + +Ensure the SSH agent is running: + +`eval $(ssh-agent -s)` + +Add the key to the agent: + +`ssh-add ~/.ssh/id_ed25519_new` + +Verify the key is added: + +`ssh-add -l` + +Alternatively, generate a New SSH Key Pair: + +`ssh-keygen -t ed25519 -C "your_email@example.com" -N "" -f ~/.ssh/id_ed25519_new` + +Add the New Key to the SSH Agent: + +`eval $(ssh-agent -s)` +`ssh-add ~/.ssh/id_ed25519_new` + +Verify the Key is Added: + +`ssh-add -l` + +Copy the Public Key to Google Cloud: Display the public key: + +`cat ~/.ssh/id_ed25519_new.pub` + +Add the output to the SSH keys section in your Google Cloud VM. + +Connect to the VM via SSH: + +`ssh -A -i ~/.ssh/id_ed25519_new jesse@34.150.172.238` + +Issues with remote explorer in VS Code + +Connecting via Visual Studio Code Remote Explorer +Install the Remote - SSH Extension: +Open Visual Studio Code. +Go to the Extensions view (Ctrl+Shift+X). +Search for "Remote - SSH" and install the extension by Microsoft. + +Configure SSH in Visual Studio Code: +Open the Command Palette (Ctrl+Shift+P). +Type Remote-SSH: Open Configuration File... and select it. +Choose the SSH configuration file to edit (usually ~/.ssh/config). +Add Your VM to the SSH Config File: +Add an entry for your Google Cloud VM in the SSH config file: +``` +Host google-cloud-vm +HostName 34.150.172.238 +Username jesse +IdentityFile ~/.ssh/id_ed25519_new +``` +Connect to the VM: +Open the Command Palette (Ctrl+Shift+P). +Type Remote-SSH: Connect to Host... and select it. +Choose google-cloud-vm from the list. + +Open a Folder on the Remote VM: +Once connected, click on the "Open Folder" button in the Remote Explorer view. +SSH Key Permissions: +Ensure the permissions of your SSH key files are correct: +`chmod 600 ~/.ssh/id_ed25519_new` +`chmod 644 ~/.ssh/id_ed25519_new.pub` + From fb000d6a2b6b55c03b159c75e55f9b2410682314 Mon Sep 17 00:00:00 2001 From: Jesse Washburn <142361664+jessewashburn@users.noreply.github.com> Date: Fri, 27 Dec 2024 18:48:14 -0500 Subject: [PATCH 2/7] Update nation-planet-instructions.md --- nation-planet-instructions.md | 1 - 1 file changed, 1 deletion(-) diff --git a/nation-planet-instructions.md b/nation-planet-instructions.md index f693ab727c..0fb36c833c 100644 --- a/nation-planet-instructions.md +++ b/nation-planet-instructions.md @@ -7,7 +7,6 @@ - Search for “Compute Engine API,” enable it, wait for it to activate - Search for “Metadata” and look for “Metadata Compute Engine”, go to “SSH KEYS” - add your public key there, you’ll need to append the key with ` name` to satisfy google’s format rule (Adding it manually to authorzied_keys would not work as it will get it overridden over time…) -- Add other people’s keys here as well: https://docs.google.com/document/d/e/2PACX-1vRgf6WtvM7SyfpL3T826jWuCWiCzOei8PVwzOmyIh8SpOpZTJxe3rJC_kLty-gt5ILv05ERCPzorxpr/pub - Go to “Compute Engine”, click on “Create Instance” button - Select a location near you, price typically ranges between $25 - $35 a month - Leave everything else to default, 4GB of RAM and Debian 12 works for us From f52ad5874fdea3531b37f3ce4d7c908eaff8e9d4 Mon Sep 17 00:00:00 2001 From: Jesse Washburn <142361664+jessewashburn@users.noreply.github.com> Date: Fri, 27 Dec 2024 18:49:03 -0500 Subject: [PATCH 3/7] Update nation-planet-instructions.md From 712cf81d8785a862f7911f6eafe014f9abf58bd8 Mon Sep 17 00:00:00 2001 From: Jesse Washburn <142361664+jessewashburn@users.noreply.github.com> Date: Mon, 30 Dec 2024 12:16:59 -0500 Subject: [PATCH 4/7] Update nation-planet-instructions.md --- nation-planet-instructions.md | 181 +++++++++++++++++----------------- 1 file changed, 92 insertions(+), 89 deletions(-) diff --git a/nation-planet-instructions.md b/nation-planet-instructions.md index 0fb36c833c..7424d86e24 100644 --- a/nation-planet-instructions.md +++ b/nation-planet-instructions.md @@ -3,114 +3,117 @@ - https://console.cloud.google.com/ - Log in with ole email - Sign up, choose personal, for org use. You may need a credit card/debit card to verify you are a real person. A charge and refund in the amount of $1.9_ will show up on your card transaction history. You will need the code in the purchase description to verify. -- There’s no risk of getting charged in the future if you do not click on “Activate full account”. If you are within the US, set up a privacy.com card if you want to be extra cautious. + - There’s no risk of getting charged in the future if you do not click on “Activate full account”. If you are within the US, set up a privacy.com card if you want to be extra cautious. - Search for “Compute Engine API,” enable it, wait for it to activate - Search for “Metadata” and look for “Metadata Compute Engine”, go to “SSH KEYS” -- add your public key there, you’ll need to append the key with ` name` to satisfy google’s format rule (Adding it manually to authorzied_keys would not work as it will get it overridden over time…) +- add your public key there, you’ll need to append the key with ` name` to satisfy google’s format rule (Adding it manually to authorized_keys would not work as it will get it overridden over time) - Go to “Compute Engine”, click on “Create Instance” button - Select a location near you, price typically ranges between $25 - $35 a month - Leave everything else to default, 4GB of RAM and Debian 12 works for us - Click on the “Create” button - Once the instance is created, try to ssh into the vm from your terminal -- Search for “Firewall VPC Network”, clicko on “CREATE FIREWALL RULE” button -- Name: planetdev-rules -- Action on match - Allow - “Targets” dropdown - select “All instances in the network” -- Under “Source IPv4 Range”, enter “0.0.0.0/0” -- Under ”Protocols and ports”, check TCP, enter “2200,3000,5000” (ports for couchdb, default ng serve port, and chatpi) -- Click on the blue “Create” button +- Search for “Firewall VPC Network”, click on “CREATE FIREWALL RULE” button + - Name: planetdev-rules + - Action on match - Allow - “Targets” dropdown - select “All instances in the network” + - Under “Source IPv4 Range”, enter “0.0.0.0/0” + - Under ”Protocols and ports”, check TCP, enter “2200,3000,5000” (ports for couchdb, default ng serve port, and chatpi) + - Click on the blue “Create” button - Tools installation -- Install git, unzip apt-get update && apt-get install git unzip -- Install docker https://docs.docker.com/engine/install/debian/#install-using-the-repository + - Install git, unzip apt-get update && apt-get install git unzip + - Install docker https://docs.docker.com/engine/install/debian/#install-using-the-repository - Follow https://open-learning-exchange.github.io/#!pages/vi/vi-docker-development-tutorial.md - Ensure you are running as a regular user instead of root user while installing node.js - When you are ready to run `ng serve`, start up a screen session with `screen`, run `ng serve`, once you verified it’s working, use `ctrl + a` then press `d` to detach and keep it running - Configure your planet as a nation (instead of community, select nation from the dropdown), please avoid password that are too simple or common (12345, abc, 000, admin) - Share your vm IP address and username/pw with us! -# Step 2 : Set up your dev environment +# Step 2 : Setting up your dev environment -Install the following extensions: -Remote Explorer (Microsoft) -Remote Development (Microsoft) - -![image](https://github.com/user-attachments/assets/8b19e456-27a6-4616-b4d5-a1b2dbeea5ab) - -Under the Remote explorer tab, add new remote connection via the plus sign. -Type in the IP of your cloud VM -Specify the location of your ssh config when prompted -Select Linux as the platform of the host machine -Open the Planet folder to begin editing. -Use the terminal to run Git commands as usual +- Install the following extensions: + - Microsoft Remote Explorer + - Microsoft Remote Development +- Connect you IDE to the VM + - Under the Remote explorer tab, add new remote connection via the plus sign. + - Type in the IP of your cloud VM. + - Specify the location of your ssh config when prompted. + - Select Linux as the platform of the host machine. +- Open the Planet folder to begin editing. # Troubleshooting -Permission denied (publickey). - -Ensure the SSH agent is running: - -`eval $(ssh-agent -s)` - -Add the key to the agent: - -`ssh-add ~/.ssh/id_ed25519_new` - -Verify the key is added: - -`ssh-add -l` - -Alternatively, generate a New SSH Key Pair: - -`ssh-keygen -t ed25519 -C "your_email@example.com" -N "" -f ~/.ssh/id_ed25519_new` - -Add the New Key to the SSH Agent: - -`eval $(ssh-agent -s)` -`ssh-add ~/.ssh/id_ed25519_new` - -Verify the Key is Added: - -`ssh-add -l` - -Copy the Public Key to Google Cloud: Display the public key: - -`cat ~/.ssh/id_ed25519_new.pub` - -Add the output to the SSH keys section in your Google Cloud VM. - -Connect to the VM via SSH: - -`ssh -A -i ~/.ssh/id_ed25519_new jesse@34.150.172.238` - -Issues with remote explorer in VS Code - -Connecting via Visual Studio Code Remote Explorer -Install the Remote - SSH Extension: -Open Visual Studio Code. -Go to the Extensions view (Ctrl+Shift+X). -Search for "Remote - SSH" and install the extension by Microsoft. +### Permission denied (publickey). + +- Ensure the SSH agent is running: + ``` + eval $(ssh-agent -s) + ``` + +- Add the key to the agent: + ``` + ssh-add ~/.ssh/ + ``` + +- Verify the key is added: + ``` + ssh-add -l + ``` +- Alternatively: + - Generate a New SSH Key Pair: + + ``` + ssh-keygen -t ed25519 -C "your_email@example.com" -N "" -f ~/.ssh/ + ``` + - Add the New Key to the SSH Agent: + + ```bash + eval $(ssh-agent -s) + ssh-add ~/.ssh/ + ``` + - Verify the Key is Added: + + ``` + ssh-add -l + ``` + +- Copy the Public Key to Google Cloud: Display the public key: + ``` + cat ~/.ssh/.pub + ``` + +- Add the output to the SSH keys section in your Google Cloud VM. + +- Connect to the VM via SSH: + ``` + ssh -A -i ~/.ssh/ @ + ``` + +### Issues with remote explorer in VS Code + +- Install the Remote - SSH Extension: +- Open the Command Palette (Ctrl+Shift+P). +- Type Remote-SSH: Open Configuration File... and select it. +- Choose the SSH configuration file to edit (usually ~/.ssh/config). +- Add Your VM to the SSH Config File: +- Add an entry for your Google Cloud VM in the SSH config file: + - Host google-cloud-vm + - HostName `` + - Username `` + - IdentityFile `~/.ssh/` +- Connect to the VM: +- Open the Command Palette (Ctrl+Shift+P). +- Type Remote-SSH: Connect to Host... and select it. +- Choose google-cloud-vm from the list. + +- Open a Folder on the Remote VM: +- Once connected, click on the "Open Folder" button in the Remote Explorer view. + +### SSH Key Permissions: +- Ensure the permissions of your SSH key files are correct: -Configure SSH in Visual Studio Code: -Open the Command Palette (Ctrl+Shift+P). -Type Remote-SSH: Open Configuration File... and select it. -Choose the SSH configuration file to edit (usually ~/.ssh/config). -Add Your VM to the SSH Config File: -Add an entry for your Google Cloud VM in the SSH config file: -``` -Host google-cloud-vm -HostName 34.150.172.238 -Username jesse -IdentityFile ~/.ssh/id_ed25519_new -``` -Connect to the VM: -Open the Command Palette (Ctrl+Shift+P). -Type Remote-SSH: Connect to Host... and select it. -Choose google-cloud-vm from the list. + ``` + chmod 600 ~/.ssh/ + chmod 644 ~/.ssh/.pub + ``` -Open a Folder on the Remote VM: -Once connected, click on the "Open Folder" button in the Remote Explorer view. -SSH Key Permissions: -Ensure the permissions of your SSH key files are correct: -`chmod 600 ~/.ssh/id_ed25519_new` -`chmod 644 ~/.ssh/id_ed25519_new.pub` From 464fffefad78d236bf519c53a584b98675cc5943 Mon Sep 17 00:00:00 2001 From: yibo <7483137+xyb994@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:01:02 -0500 Subject: [PATCH 5/7] Update nation-planet-instructions.md --- nation-planet-instructions.md | 36 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/nation-planet-instructions.md b/nation-planet-instructions.md index 7424d86e24..a4205443dd 100644 --- a/nation-planet-instructions.md +++ b/nation-planet-instructions.md @@ -1,34 +1,34 @@ -# Step 1 : Set up Google Cloud VM +# Remote Development with Nation Planet -- https://console.cloud.google.com/ -- Log in with ole email -- Sign up, choose personal, for org use. You may need a credit card/debit card to verify you are a real person. A charge and refund in the amount of $1.9_ will show up on your card transaction history. You will need the code in the purchase description to verify. - - There’s no risk of getting charged in the future if you do not click on “Activate full account”. If you are within the US, set up a privacy.com card if you want to be extra cautious. -- Search for “Compute Engine API,” enable it, wait for it to activate +## Step 1 : Set up Google Cloud VM + +- Go to https://console.cloud.google.com/ and log in with your OLE Google account +- Sign up, choose individual account, for organizational use. You may need a credit card/debit card to verify you are a real person. A charge and refund in the amount less than $2 will show up on your card transaction history. You will need the code in the purchase description to verify. + - There’s no risk of getting charged in the future if you do not click on “Activate full account” within Google Cloud Console. +- Search for “Compute Engine API,” enable and wait for it to activate - Search for “Metadata” and look for “Metadata Compute Engine”, go to “SSH KEYS” -- add your public key there, you’ll need to append the key with ` name` to satisfy google’s format rule (Adding it manually to authorized_keys would not work as it will get it overridden over time) +- add your public key there, you’ll need to append the key with ` name` to satisfy google’s format rule (Adding it manually to authorized_keys in the VM would not work as it will get it overridden over time) - Go to “Compute Engine”, click on “Create Instance” button - Select a location near you, price typically ranges between $25 - $35 a month - Leave everything else to default, 4GB of RAM and Debian 12 works for us - Click on the “Create” button - - Once the instance is created, try to ssh into the vm from your terminal - Search for “Firewall VPC Network”, click on “CREATE FIREWALL RULE” button - - Name: planetdev-rules + - Name: `planetdev-rules` - Action on match - Allow - “Targets” dropdown - select “All instances in the network” - - Under “Source IPv4 Range”, enter “0.0.0.0/0” - - Under ”Protocols and ports”, check TCP, enter “2200,3000,5000” (ports for couchdb, default ng serve port, and chatpi) + - Under “Source IPv4 Range”, enter `0.0.0.0/0` + - Under ”Protocols and ports”, check TCP, enter `2200,3000,5000` (ports for couchdb, default `ng serve` port, and chatpi) - Click on the blue “Create” button - Tools installation - - Install git, unzip apt-get update && apt-get install git unzip + - Install git, unzip: `apt-get update && apt-get install git unzip` - Install docker https://docs.docker.com/engine/install/debian/#install-using-the-repository - Follow https://open-learning-exchange.github.io/#!pages/vi/vi-docker-development-tutorial.md -- Ensure you are running as a regular user instead of root user while installing node.js -- When you are ready to run `ng serve`, start up a screen session with `screen`, run `ng serve`, once you verified it’s working, use `ctrl + a` then press `d` to detach and keep it running + - Ensure you are running as a regular user instead of root user while installing node.js + - When you are ready to run `ng serve`, start up a screen session with `screen`, run `ng serve`, once you verified it’s working, use `ctrl + a` then press `d` to detach and keep it running - Configure your planet as a nation (instead of community, select nation from the dropdown), please avoid password that are too simple or common (12345, abc, 000, admin) -- Share your vm IP address and username/pw with us! +- Share your vm IP address and username/pw with us at [this google sheet](https://docs.google.com/spreadsheets/d/1FTyV0i358eCB1cSCQkknjJq22cbtBTXQceL-GNuerS8/edit?gid=569549482#gid=569549482) and let us know our Discord server! -# Step 2 : Setting up your dev environment +## Step 2 : Setting up your dev environment - Install the following extensions: - Microsoft Remote Explorer @@ -40,7 +40,7 @@ - Select Linux as the platform of the host machine. - Open the Planet folder to begin editing. -# Troubleshooting +## Troubleshooting ### Permission denied (publickey). @@ -115,5 +115,3 @@ chmod 600 ~/.ssh/ chmod 644 ~/.ssh/.pub ``` - - From ed8e0999827e9add4dac5c90c7764f435d70ee39 Mon Sep 17 00:00:00 2001 From: yibo <7483137+xyb994@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:15:08 -0500 Subject: [PATCH 6/7] Update nation-planet-instructions.md --- nation-planet-instructions.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nation-planet-instructions.md b/nation-planet-instructions.md index a4205443dd..9d424238d1 100644 --- a/nation-planet-instructions.md +++ b/nation-planet-instructions.md @@ -2,12 +2,12 @@ ## Step 1 : Set up Google Cloud VM -- Go to https://console.cloud.google.com/ and log in with your OLE Google account -- Sign up, choose individual account, for organizational use. You may need a credit card/debit card to verify you are a real person. A charge and refund in the amount less than $2 will show up on your card transaction history. You will need the code in the purchase description to verify. - - There’s no risk of getting charged in the future if you do not click on “Activate full account” within Google Cloud Console. +- Go to https://console.cloud.google.com/ and log in with your OLE Google account. +- Sign up, choose individual account, for organizational use. You may need a credit card/debit card to verify you are a real person. A charge and refund in the amount less than $2 will show up on your card transaction history. You will need the code in the purchase description to verify. There’s no risk of getting charged in the future if you do not click on “Activate full account” within Google Cloud Console. - Search for “Compute Engine API,” enable and wait for it to activate -- Search for “Metadata” and look for “Metadata Compute Engine”, go to “SSH KEYS” -- add your public key there, you’ll need to append the key with ` name` to satisfy google’s format rule (Adding it manually to authorized_keys in the VM would not work as it will get it overridden over time) +- Search for “Metadata” and look for “Metadata Compute Engine”, go to “SSH KEYS” tab + - Add your public key there. If the key does not already include a comment, you’ll need to append ` name` to the key to comply with Google’s format rules. + - Adding it manually to `authorized_keys` in the VM would not work as it will get it overridden over time. - Go to “Compute Engine”, click on “Create Instance” button - Select a location near you, price typically ranges between $25 - $35 a month - Leave everything else to default, 4GB of RAM and Debian 12 works for us From 6232bc7ed6069ede388f11a985495a8831be0609 Mon Sep 17 00:00:00 2001 From: yibo <7483137+xyb994@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:49:16 -0500 Subject: [PATCH 7/7] Update nation-planet-instructions.md --- nation-planet-instructions.md | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/nation-planet-instructions.md b/nation-planet-instructions.md index 9d424238d1..3c2bd324eb 100644 --- a/nation-planet-instructions.md +++ b/nation-planet-instructions.md @@ -2,23 +2,28 @@ ## Step 1 : Set up Google Cloud VM +### Preparation - Go to https://console.cloud.google.com/ and log in with your OLE Google account. - Sign up, choose individual account, for organizational use. You may need a credit card/debit card to verify you are a real person. A charge and refund in the amount less than $2 will show up on your card transaction history. You will need the code in the purchase description to verify. There’s no risk of getting charged in the future if you do not click on “Activate full account” within Google Cloud Console. - Search for “Compute Engine API,” enable and wait for it to activate -- Search for “Metadata” and look for “Metadata Compute Engine”, go to “SSH KEYS” tab +- Search for “Metadata Compute Engine,” go to “SSH KEYS” tab - Add your public key there. If the key does not already include a comment, you’ll need to append ` name` to the key to comply with Google’s format rules. - Adding it manually to `authorized_keys` in the VM would not work as it will get it overridden over time. -- Go to “Compute Engine”, click on “Create Instance” button -- Select a location near you, price typically ranges between $25 - $35 a month -- Leave everything else to default, 4GB of RAM and Debian 12 works for us -- Click on the “Create” button -- Once the instance is created, try to ssh into the vm from your terminal -- Search for “Firewall VPC Network”, click on “CREATE FIREWALL RULE” button +- Search for “Firewall VPC Network,” click on “CREATE FIREWALL RULE” button - Name: `planetdev-rules` - Action on match - Allow - “Targets” dropdown - select “All instances in the network” - Under “Source IPv4 Range”, enter `0.0.0.0/0` - Under ”Protocols and ports”, check TCP, enter `2200,3000,5000` (ports for couchdb, default `ng serve` port, and chatpi) - Click on the blue “Create” button + +### Create Instance +- Go to “[Compute Engine](https://console.cloud.google.com/compute/overview)”, click on “Create Instance” button +- Select a location near you, price typically ranges between $25 - $35 a month +- Leave everything else to default, 4GB of RAM and Debian 12 works for us +- Click on the “Create” button + +### Configuration and Installation +- Once the instance is up and running, try to ssh into the vm from your terminal - Tools installation - Install git, unzip: `apt-get update && apt-get install git unzip` - Install docker https://docs.docker.com/engine/install/debian/#install-using-the-repository @@ -30,7 +35,7 @@ ## Step 2 : Setting up your dev environment -- Install the following extensions: +- Install the following extensions in VS Code - Microsoft Remote Explorer - Microsoft Remote Development - Connect you IDE to the VM