Download, install dependences and start a nodeJS project from GitHub
To create config json
npx start-from-github init filename
- filename - (Optional) Config file name. Default value is repository.json
To start
npm start-from-github up filename
- filename - (Optional) Config file name. Default value is repository.json
{
"name": "name",
"url": "github_repository_url",
"token": "token",
"webhookPort": "port",
"preCommands": [
"npm run build"
],
"startCommand": "npm run launch",
"symlinks": [
{
"source": "destination"
}
]
}
- name - A name for the repository
- url - The project URL
- token - (Optional) It's required for private projects. Read more: ...
- webhookPort - (Optional) Port to start a http server to webhook
- preCommands - (Optional) Commands to run before to start the project
- startCommand - (Optional) The command to start the project. Default value is npm start
- symlinks - (Optional) Symblinks for files to share with the project
Obs: you can use webhook to download latest version of the repository and to restart it.
Webhook api: http://host:wehbookPort/update
npx start-from-github github_repository_url
The command used to start the project is 'npm start'.