Simplify, improve, document.

This commit is contained in:
jwhitlark
2023-09-20 16:17:01 +00:00
parent 417ce56981
commit 6d269719ce
2 changed files with 13 additions and 6 deletions

View File

@ -4,17 +4,20 @@
"dockerfile": "Dockerfile.dev"
},
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// Features to add to the dev container. More info: https://containers.dev/features.
// More info: https://containers.dev/features.
"features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Run commands on cluster first start.
// Run commands on cluster first start. Useful for download dependencies, etc.
// "postCreateCommand": "",
// Copy host env vars into the devcontainer. You can also refer to some_file.env files in your docker-compose setup.
// Copy host env vars into the devcontainer. You can also refer to some_file.env files in your docker or docker-compose setup.
"remoteEnv": {},
// Configure tool-specific properties.
"customizations": {
// Editor plugins and settings
"vscode": {
"extensions": [
"betterthantomorrow.calva"

View File

@ -8,9 +8,13 @@ A variant using [Integrant](https://github.com/weavejester/integrant) and [Reiti
A version of this application that uses the [Polylith architecture](https://polylith.gitbook.io/) is also available, on the [`polylith` branch](https://github.com/seancorfield/usermanager-example/tree/polylith).
## Open in codespace
## Quickstart via Devcontainers or Github Codespaces
If you have configured your Github account, you can start the project without any other setup. It will open a web-based vscode editor backed by a Github Codespace VM. (Codespaces is Github's hosted Devcontainer solution)
[![Open in Github Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/jwhitlark/usermanager-example)
You can also clone this repo locally, and using vscode (with the devcontainer plugin), and Docker Desktop, run an isolated, fully setup version of this application locally. Open the repo in your editor and run the command `Dev Containers: Open Folder in Container...`.
## Requirements
This example assumes that you have a recent version of the [Clojure CLI](https://clojure.org/guides/deps_and_cli) installed (at least 1.10.3.933), and provides a `deps.edn` file, and a `build.clj` file.