* wip: commit current progress on usePaginatedQuery * chore: add cacheTime to users query * chore: update cache logic for UsersPage usersQuery * wip: commit progress on Pagination * chore: add function overloads to prepareQuery * wip: commit progress on usePaginatedQuery * docs: add clarifying comment about implementation * chore: remove optional prefetch property from query options * chore: redefine queryKey * refactor: consolidate how queryKey/queryFn are called * refactor: clean up pagination code more * fix: remove redundant properties * refactor: clean up code * wip: commit progress on usePaginatedQuery * wip: commit current pagination progress * docs: clean up comments for clarity * wip: get type signatures compatible (breaks runtime logic slightly) * refactor: clean up type definitions * chore: add support for custom onInvalidPage functions * refactor: clean up type definitions more for clarity reasons * chore: delete Pagination component (separate PR) * chore: remove cacheTime fixes (to be resolved in future PR) * docs: add clarifying/intellisense comments for DX * refactor: link users queries to same queryKey implementation * docs: remove misleading comment * docs: more comments * chore: update onInvalidPage params for more flexibility * fix: remove explicit any * refactor: clean up type definitions * refactor: rename query params for consistency * refactor: clean up input validation for page changes * refactor/fix: update hook to be aware of async data * chore: add contravariance to dictionary * refactor: increase type-safety of usePaginatedQuery * docs: more comments * chore: move usePaginatedQuery file * fix: add back cacheTime * chore: swap in usePaginatedQuery for users table * chore: add goToFirstPage to usePaginatedQuery * fix: make page redirects work properly * refactor: clean up clamp logic * chore: swap in usePaginatedQuery for Audits table * refactor: move dependencies around * fix: remove deprecated properties from hook * refactor: clean up code more * docs: add todo comment * chore: update testing fixtures * wip: commit current progress for tests * fix: update useEffectEvent to sync via layout effects * wip: commit more progress on tests * wip: stub out all expected test cases * wip: more test progress * wip: more test progress * wip: commit more test progress * wip: AHHHHHHHH * chore: finish two more test cases * wip: add in all tests (still need to investigate prefetching * refactor: clean up code slightly * fix: remove math bugs when calculating pages * fix: wrap up all testing and clean up cases * docs: update comments for clarity * fix: update error-handling for invalid page handling * fix: apply suggestions
Coder enables organizations to set up development environments in the cloud. Environments are defined with Terraform, connected through a secure high-speed Wireguard® tunnel, and are automatically shut down when not in use to save on costs. Coder gives engineering teams the flexibility to use the cloud for workloads that are most beneficial to them.
- Define development environments in Terraform
- EC2 VMs, Kubernetes Pods, Docker Containers, etc.
- Automatically shutdown idle resources to save on costs
- Onboard developers in seconds instead of days
Quickstart
The most convenient way to try Coder is to install it on your local machine and experiment with provisioning development environments using Docker (works on Linux, macOS, and Windows).
# First, install Coder
curl -L https://coder.com/install.sh | sh
# Start the Coder server (caches data in ~/.cache/coder)
coder server
# Navigate to http://localhost:3000 to create your initial user
# Create a Docker template, and provision a workspace
Install
The easiest way to install Coder is to use our
install script for Linux
and macOS. For Windows, use the latest ..._installer.exe file from GitHub
Releases.
curl -L https://coder.com/install.sh | sh
You can run the install script with --dry-run to see the commands that will be used to install without executing them. You can modify the installation process by including flags. Run the install script with --help for reference.
See install for additional methods.
Once installed, you can start a production deployment1 with a single command:
# Automatically sets up an external access URL on *.try.coder.app
coder server
# Requires a PostgreSQL instance (version 13 or higher) and external access URL
coder server --postgres-url <url> --access-url <url>
1 For production deployments, set up an external PostgreSQL instance for reliability.
Use coder --help to get a list of flags and environment variables. Use our install guides for a full walkthrough.
Documentation
Browse our docs here or visit a specific section below:
- Templates: Templates are written in Terraform and describe the infrastructure for workspaces
- Workspaces: Workspaces contain the IDEs, dependencies, and configuration information needed for software development
- IDEs: Connect your existing editor to a workspace
- Administration: Learn how to operate Coder
- Enterprise: Learn about our paid features built for large teams
Community and Support
Feel free to open an issue if you have questions, run into bugs, or have a feature request.
Join our Discord to provide feedback on in-progress features, and chat with the community using Coder!
Contributing
Contributions are welcome! Read the contributing docs to get started.
Find our list of contributors here.
Related
We are always working on new integrations. Feel free to open an issue to request an integration. Contributions are welcome in any official or community repositories.
Official
- VS Code Extension: Open any Coder workspace in VS Code with a single click
- JetBrains Gateway Extension: Open any Coder workspace in JetBrains Gateway with a single click
- Self-Hosted VS Code Extension Marketplace: A private extension marketplace that works in restricted or airgapped networks integrating with code-server.
Community
- Provision Coder with Terraform: Provision Coder on Google GKE, Azure AKS, AWS EKS, DigitalOcean DOKS, IBMCloud K8s, OVHCloud K8s, and Scaleway K8s Kapsule with Terraform
- Coder GitHub Action: A GitHub Action that updates Coder templates
- Various Templates: Hetzner Cloud, Docker in Docker, and other templates the community has built.
