{"id":25721885,"url":"https://github.com/austingil/linode-vpc-demo","last_synced_at":"2025-08-08T06:21:10.107Z","repository":{"id":221757527,"uuid":"755295643","full_name":"AustinGil/linode-vpc-demo","owner":"AustinGil","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-21T17:11:54.000Z","size":34626,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T18:54:31.759Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AustinGil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-02-09T20:41:22.000Z","updated_at":"2024-06-08T02:32:59.000Z","dependencies_parsed_at":"2024-03-18T22:35:22.411Z","dependency_job_id":null,"html_url":"https://github.com/AustinGil/linode-vpc-demo","commit_stats":null,"previous_names":["austingil/linode-vpc-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AustinGil/linode-vpc-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinGil%2Flinode-vpc-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinGil%2Flinode-vpc-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinGil%2Flinode-vpc-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinGil%2Flinode-vpc-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AustinGil","download_url":"https://codeload.github.com/AustinGil/linode-vpc-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AustinGil%2Flinode-vpc-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269374114,"owners_count":24406526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-02-25T18:54:41.314Z","updated_at":"2025-08-08T06:21:10.076Z","avatar_url":"https://github.com/AustinGil.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linode VPC Demo Using Terraform\n\nThis demo app provisions two application servers and two databases. One app+db pair is publicly available and the other lives within its own private VPC network, only exposing the app server to public traffic. As a result even if the database credentials get exposed, only other computers within the VPC network can access the database.\n\nThe demo’s front end is built with [Qwik](https://qwik.dev/) and uses [Tailwind](https://tailwindcss.com/) for styling. The server side is powered by [Qwik City](https://qwik.dev/docs/qwikcity/) (Qwik’s official meta-framework) and runs on [Node.js](https://nodejs.org/) hosted on a [shared Linode VPS](https://www.linode.com/products/shared/). The apps also use [PM2](https://pm2.io/) for process management and [Caddy](https://caddyserver.com/) as a reverse proxy and SSL provisioner. The data is stored in a PostgreS[QL](https://www.postgresql.org/) database that also runs on a shared Lindode VPS. They interact with the database using [Drizzle](https://orm.drizzle.team/) Object-Relational Mapping (ORM). The entire infrastructure for each app is managed with [Terraform](https://www.terraform.io/) using the [Terraform Linode provider](https://registry.terraform.io/providers/linode/linode/latest/docs). See the `/terraform` folder for more details.\n\nTo provision your own app, copy the `/terraform/terraform.tfvars.example` file to `/terraform/terraform.tfvars` and set the appropriate configuration/environment variables.\n\nThe following is the default README for QwikCity.\n\n# Qwik City App ⚡️\n\n- [Qwik Docs](https://qwik.builder.io/)\n- [Discord](https://qwik.builder.io/chat)\n- [Qwik GitHub](https://github.com/BuilderIO/qwik)\n- [@QwikDev](https://twitter.com/QwikDev)\n- [Vite](https://vitejs.dev/)\n\n---\n\n## Project Structure\n\nThis project is using Qwik with [QwikCity](https://qwik.builder.io/qwikcity/overview/). QwikCity is just an extra set of tools on top of Qwik to make it easier to build a full site, including directory-based routing, layouts, and more.\n\nInside your project, you'll see the following directory structure:\n\n```\n├── public/\n│   └── ...\n└── src/\n    ├── components/\n    │   └── ...\n    └── routes/\n        └── ...\n```\n\n- `src/routes`: Provides the directory-based routing, which can include a hierarchy of `layout.tsx` layout files, and an `index.tsx` file as the page. Additionally, `index.ts` files are endpoints. Please see the [routing docs](https://qwik.builder.io/qwikcity/routing/overview/) for more info.\n\n- `src/components`: Recommended directory for components.\n\n- `public`: Any static assets, like images, can be placed in the public directory. Please see the [Vite public directory](https://vitejs.dev/guide/assets.html#the-public-directory) for more info.\n\n## Add Integrations and deployment\n\nUse the `npm run qwik add` command to add additional integrations. Some examples of integrations includes: Cloudflare, Netlify or Express Server, and the [Static Site Generator (SSG)](https://qwik.builder.io/qwikcity/guides/static-site-generation/).\n\n```shell\nnpm run qwik add # or `yarn qwik add`\n```\n\n## Development\n\nDevelopment mode uses [Vite's development server](https://vitejs.dev/). The `dev` command will server-side render (SSR) the output during development.\n\n```shell\nnpm start # or `yarn start`\n```\n\n\u003e Note: during dev mode, Vite may request a significant number of `.js` files. This does not represent a Qwik production build.\n\n## Preview\n\nThe preview command will create a production build of the client modules, a production build of `src/entry.preview.tsx`, and run a local server. The preview server is only for convenience to preview a production build locally and should not be used as a production server.\n\n```shell\nnpm run preview # or `yarn preview`\n```\n\n## Production\n\nThe production build will generate client and server modules by running both client and server build commands. The build command will use Typescript to run a type check on the source code.\n\n```shell\nnpm run build # or `yarn build`\n```\n\n## Node Server\n\nThis app has a minimal zero-dependencies server. Using the built-in `http.createServer` API.\nThis should be faster and less overhead than Express or other frameworks.\n\nAfter running a full build, you can preview the build using the command:\n\n```\nnpm run serve\n```\n\nThen visit [http://localhost:8080/](http://localhost:8080/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustingil%2Flinode-vpc-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustingil%2Flinode-vpc-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustingil%2Flinode-vpc-demo/lists"}