{"id":20196283,"url":"https://github.com/hangrybear666/05-devops-bootcamp__cloud_hosting","last_synced_at":"2026-04-11T15:39:14.731Z","repository":{"id":248438830,"uuid":"828666862","full_name":"hangrybear666/05-devops-bootcamp__cloud_hosting","owner":"hangrybear666","description":"Collection of shell scripts for initializing a VPS with dependencies and running NODE and JAVA applications.","archived":false,"fork":false,"pushed_at":"2024-07-16T15:54:41.000Z","size":127,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T09:01:32.291Z","etag":null,"topics":["bash","digitalocean","java","nodejs","posix","shell","vps"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hangrybear666.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-14T20:46:06.000Z","updated_at":"2024-09-06T20:04:39.000Z","dependencies_parsed_at":"2024-11-14T07:15:17.215Z","dependency_job_id":null,"html_url":"https://github.com/hangrybear666/05-devops-bootcamp__cloud_hosting","commit_stats":null,"previous_names":["hangrybear666/05-devops-bootcamp__cloud_hosting"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hangrybear666/05-devops-bootcamp__cloud_hosting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangrybear666%2F05-devops-bootcamp__cloud_hosting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangrybear666%2F05-devops-bootcamp__cloud_hosting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangrybear666%2F05-devops-bootcamp__cloud_hosting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangrybear666%2F05-devops-bootcamp__cloud_hosting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hangrybear666","download_url":"https://codeload.github.com/hangrybear666/05-devops-bootcamp__cloud_hosting/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangrybear666%2F05-devops-bootcamp__cloud_hosting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31686141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","digitalocean","java","nodejs","posix","shell","vps"],"created_at":"2024-11-14T04:23:05.945Z","updated_at":"2026-04-11T15:39:14.709Z","avatar_url":"https://github.com/hangrybear666.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic Cloud Hosting in Linux VM on DigitalOcean\n\nThis repo contains simple Bash Script files to establish an ssh connection to a cloud hosted linux virtual machine. After having established connection, some programs such as node are installed, a deployment package is copied via scp and then run on the remote machine.\n\nTwo processes can be run in parallel:\n- A Java Tomcat Server with a React Frontend on Port 7071\n- A NodeJS Server serving static html on Port 3000\n\n## Setup\n\n1. Pull SCM\n\nPull the repository locally by running \n```\n  git clone https://github.com/hangrybear666/05-devops-bootcamp__cloud_hosting.git \n```\n\n2. Create Remote Linux VPS and configure\n\n\tGenerate local ssh key and add to remote VPS's `authorized_keys` file.\n\n3. Install additional dependencies on remote\n\n\tSome Linux distros ship without the `netstat` command we use. In that case run `apt install net-tools`\n\n## Usage (Demo Projects)\n\n1. Add your Remote Hostname and IP to app.config\n\n\tFirst, you have to add the IP address of your remote machine and the root user to `java.config` file.\n\n2. Install Java with a newly created user account on remote server\n\n\tTo install dependencies remotely, run `./remote-install-java.sh`\n\n3. Install Gradle locally.\n\tMake sure to check https://docs.gradle.org/current/userguide/compatibility.html for the correct version for java 17. I can recommend using SDKMAN! to install different versions of gradle on linux. https://sdkman.io/install\n\n4. Build Artifact and Deploy remotely.\n\n\tTo build a .jar, push it to remote and start the server, run `./build-and-deploy-jar.sh`\n\n## Usage (Exercises)\n\n1. Add your Remote Hostname and IP to app.config\n\n\tFirst, you have to add the IP address of your remote machine and the root user to `node.config` file.\n\n2. Install Node and NPM with a newly created user account on remote server\n\n\tTo install node and npm via Node Version Manager (NVM) in a new service account on the remote machine simply run `./remote-install-node-npm.sh`\n \n3. Install Node and NPM locally with Node Version Manager (NVM)\n\n\tTo install locally, simply run `./local-install-node-npm.sh`. Then restart your terminal.\n\n4. Package App and Upload to remote server, starting as a service in the background\n\n\tTo package the node app into an archive, upload it to the server via scp, unpack and start the server simply run `./pack-and-deploy-artifact.sh`\n\n5. To kill the running server check the logs from step 3 for its Process ID (PID).\n\n\tTo kill the node server, run `kill \u003cPID\u003e` on the remote server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhangrybear666%2F05-devops-bootcamp__cloud_hosting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhangrybear666%2F05-devops-bootcamp__cloud_hosting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhangrybear666%2F05-devops-bootcamp__cloud_hosting/lists"}