Skip to content

feat: added auto-dev-server #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed

Conversation

kunstewi
Copy link

@kunstewi kunstewi commented Jul 11, 2025

Closes #204
/claim #204

Auto npm start

This module automatically detects a Node.js project in your workspace and runs npm start in the background when the workspace starts.

It looks for a package.json file in the specified project directory. If found, it starts the server and logs the output to auto-npm-start.log within that directory.

Basic Usage

Add this to your Coder template. It will check for a project in /home/coder/project.

module "auto_npm_start" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/thezoker/auto-npm-start/coder"
  version  = "1.0.0"
  agent_id = coder_agent.example.id
}

Custom Project Directory

If your project is in a different location, you can specify the project_dir variable.

module "auto_npm_start" {
  count       = data.coder_workspace.me.start_count
  source      = "registry.coder.com/thezoker/auto-npm-start/coder"
  version     = "1.0.0"
  agent_id    = coder_agent.example.id
  project_dir = "/home/coder/my-awesome-app"
}

@kunstewi kunstewi changed the title added auto-dev-server feat: added auto-dev-server Jul 11, 2025
@DevelopmentCats
Copy link
Contributor

@kunstewi Can you please provide a screen-capture of the module being loaded into a coder workspace and you demonstrating the functionality of this module as outlined in #213

@kunstewi
Copy link
Author

@kunstewi Can you please provide a screen-capture of the module being loaded into a coder workspace and you demonstrating the functionality of this module as outlined in #213

On It.

@matifali matifali requested a review from DevelopmentCats July 23, 2025 17:24
@kunstewi
Copy link
Author

fixing these

@DevelopmentCats
Copy link
Contributor

@matifali I'm still waiting on the screen capture

@kunstewi
Copy link
Author

i am closing this pr as after trying it seems it's beyond my skill level for now, I don't wanna waste you guys' time by stretching it longer.

@kunstewi kunstewi closed this Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-start development servers based on project detection
2 participants