{"id":19029935,"url":"https://github.com/statico/vs-code-devcontainer-typescript-postgresql","last_synced_at":"2025-07-03T09:06:51.362Z","repository":{"id":136668305,"uuid":"246113375","full_name":"statico/vs-code-devcontainer-typescript-postgresql","owner":"statico","description":null,"archived":false,"fork":false,"pushed_at":"2020-03-08T04:09:47.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T20:14:57.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/statico.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,"publiccode":null,"codemeta":null}},"created_at":"2020-03-09T18:34:03.000Z","updated_at":"2021-08-27T17:06:48.000Z","dependencies_parsed_at":"2023-05-15T00:00:35.879Z","dependency_job_id":null,"html_url":"https://github.com/statico/vs-code-devcontainer-typescript-postgresql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/statico/vs-code-devcontainer-typescript-postgresql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statico%2Fvs-code-devcontainer-typescript-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statico%2Fvs-code-devcontainer-typescript-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statico%2Fvs-code-devcontainer-typescript-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statico%2Fvs-code-devcontainer-typescript-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statico","download_url":"https://codeload.github.com/statico/vs-code-devcontainer-typescript-postgresql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statico%2Fvs-code-devcontainer-typescript-postgresql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263296443,"owners_count":23444489,"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","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":"2024-11-08T21:15:51.481Z","updated_at":"2025-07-03T09:06:51.336Z","avatar_url":"https://github.com/statico.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"TypeScript + VS Code + Docker + Postgres + Knex\r\n\r\n1. Install Docker\r\n1. Install VS Code Containers extension\r\n1. Install Git for Windows if on Windows\r\n1. Open in VS Code, reload workspace in container\r\n1. In the shell, `yarn dev`, then go to http://localhost:3000\r\n\r\nThings like `yarn exec knex migrate:make foo` work, too.\r\n\r\n---\r\n\r\nOriginal readme...\r\n\r\n# Try Out Development Containers: Node.js\r\n\r\nThis is a sample project that lets you try out the **[VS Code Remote - Containers](https://aka.ms/vscode-remote/containers)** extension in a few easy steps.\r\n\r\n\u003e **Note:** If you're following the quick start, you can jump to the [Things to try](#things-to-try) section.\r\n\r\n## Setting up the development container\r\n\r\nFollow these steps to open this sample in a container:\r\n\r\n1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started).\r\n\r\n2. To use this repository, you can either open a locally cloned copy of the code:\r\n\r\n   - Clone this repository to your local filesystem.\r\n   - Press \u003ckbd\u003eF1\u003c/kbd\u003e and select the **Remote-Containers: Open Folder in Container...** command.\r\n   - Select the cloned copy of this folder, wait for the container to start, and try things out!\r\n\r\n   Or open the repository in an isolated Docker volume:\r\n\r\n   - Press \u003ckbd\u003eF1\u003c/kbd\u003e and select the **Remote-Containers: Try a Sample...** command.\r\n   - Choose the \"Node\" sample, wait for the container to start and try things out!\r\n     \u003e **Note:** Under the hood, this will use **Remote-Containers: Open Repository in Container...** command to clone the source code in a Docker volume instead of the local filesystem.\r\n\r\n## Things to try\r\n\r\nOnce you have this sample opened in a container, you'll be able to work with it like you would locally.\r\n\r\n\u003e **Note:** This container runs as a non-root user with sudo access by default. Comment out `\"remoteUser\": \"node\"` in `.devcontainer/devcontainer.json` if you'd prefer to run as root.\r\n\r\nSome things to try:\r\n\r\n1. **Edit:**\r\n   - Open `server.js`\r\n   - Try adding some code and check out the language features. Notice that `eslint` and the `vscode-eslint` extension are already installed in the container.\r\n2. **Terminal:** Press \u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eShift\u003c/kbd\u003e+\u003ckbd\u003e\\`\u003c/kbd\u003e and type `uname` and other Linux commands from the terminal window.\r\n3. **Build, Run, and Debug:**\r\n   - Open `server.js`\r\n   - Add a breakpoint (e.g. on line 20).\r\n   - Press \u003ckbd\u003eF5\u003c/kbd\u003e to launch the app in the container.\r\n   - Once the breakpoint is hit, try hovering over variables, examining locals, and more.\r\n   - Continue, then open a local browser and go to `http://localhost:3000` and note you can connect to the server in the container.\r\n4. **Forward another port:**\r\n   - Stop debugging and remove the breakpoint.\r\n   - Open `server.js`\r\n   - Change the server port to 5000. (`const PORT = 5000;`)\r\n   - Press \u003ckbd\u003eF5\u003c/kbd\u003e to launch the app in the container.\r\n   - Press \u003ckbd\u003eF1\u003c/kbd\u003e and run the **Remote-Containers: Forward Port from Container...** command.\r\n   - Select port 5000.\r\n   - Click \"Open Browser\" in the notification that appears to access the web app on this new port.\r\n\r\n## Contributing\r\n\r\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\r\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\r\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\r\n\r\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\r\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\r\nprovided by the bot. You will only need to do this once across all repos using our CLA.\r\n\r\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\r\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\r\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\r\n\r\n## License\r\n\r\nCopyright © Microsoft Corporation All rights reserved.\u003cbr /\u003e\r\nLicensed under the MIT License. See LICENSE in the project root for license information.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatico%2Fvs-code-devcontainer-typescript-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatico%2Fvs-code-devcontainer-typescript-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatico%2Fvs-code-devcontainer-typescript-postgresql/lists"}