Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 2.26 KB

README.md

File metadata and controls

53 lines (42 loc) · 2.26 KB

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)