Skip to content
/ node-shuttle Public template

Node.js Project Template for hosting on shuttle.dev (previously shuttle.rs)

License

Notifications You must be signed in to change notification settings

arnav-kr/node-shuttle

Repository files navigation

Node Shuttle


Node.js on shuttle.dev Template

This Template is a starting point for creating a Node.js project on the shuttle.dev. It is a simple discord bot template that can be used to create a discord bot using the discord.js library, or any other Node.js project.

Example of a bot running on shuttle.rs: Bot Running on shuttle.rs

Pre-requisites

Getting Started

  • Create a new project using the template

    shuttle init --from arnav-kr/node-shuttle
  • rename Secrets.example.toml to Secrets.toml and put your environment variables there. Those will be deployed to the shuttle.dev project.

  • deploy the project

    npm run deploy

Deploy via GitHub Actions

The template comes with a GitHub Actions workflow that deploys the project to shuttle.dev on every push to the main branch.

Important

To enable the workflow, you need to add the SHUTTLE_TOKEN and SHUTTLE_PROJECT_ID to the repository secrets.

Development

use general node workflow for development.

Adding to an existing project

Copy the following files to your project:

deploy the project using npm run deploy

License

This project is licensed under the AGPL 3.0 License - see the LICENSE file for details

Author

Arnav Kumar (@arnav-kr)