This guide explains how to properly set up a new TRMNL plugin project using the TRMNL-Boilerplate repository.
-
Create your new repository on GitHub
- Go to GitHub and create a new repository
- Name it according to your plugin (e.g., "TRMNL-FBI-Most-Wanted")
- Don't initialize it with any files yet
-
Clone the boilerplate repository
git clone https://github.com/OptimumMeans/TRMNL-Boilerplate.git YOUR-PLUGIN-NAME cd YOUR-PLUGIN-NAME
-
Remove the boilerplate remote connection
git remote remove origin
-
Add your new repository as the origin
git remote add origin https://github.com/YOUR-USERNAME/YOUR-PLUGIN-NAME.git
-
Push to your new repository
git add . git commit -m "Initial commit from boilerplate" git push -u origin main # or master, depending on your default branch name
To verify your setup is correct:
-
Check your remote URL:
git remote -v
This should show your new repository URL, not the boilerplate URL.
-
Visit your GitHub repository page
- You should see all the boilerplate files in your repository
- The commit history should start fresh with your initial commit
- If
git push
tries to push to the boilerplate repository, you likely skipped step 3 - If you get a "repository not found" error, double check your new repository URL
- If you get a permission error, ensure you have the correct access rights to your new repository
After setup, you can:
- Modify the plugin code for your specific needs
- Update the README.md to describe your plugin
- Configure your environment variables
- Begin development and testing
Original boilerplate repository: https://github.com/OptimumMeans/TRMNL-Boilerplate.git