Skip to content

0dataapp/oneclick-proof

Repository files navigation

oneclick-proof

Simple Node.js app demonstrating how to package for one-click deploys on self-hosted panels.

Each request increments a count that's stored on the local filesystem, which should persist between restarts; set the destination directory path via a DATA_DIRECTORY environment variable.

These panels maintain their own 'app catalogs' for one-click installs; until your app is included there, it will require more clicks to setup. Below are instructions for each platform so that you can test easily before submission.

Many of them also require publishing a Docker image somewhere to install. For simplicity the examples below uses pre-built images.

Setup
  1. Install Cloudron via one-click images on one of various hosting platforms.

  2. Clone the project locally:

git clone https://github.com/0dataapp/oneclick-proof
  1. From the project directory, run the install command via the Cloudron CLI:
cd oneclick-proof
cloudron install --image 0data/oneclick-proof:cloudron --location oneclick-proof
Updates
  1. From the project directory, run the update command via the Cloudron CLI:
cloudron update --image 0data/oneclick-proof:cloudron --app oneclick-proof

See the packaging tutorial or Cloudron official packages for reference. You can also use Cloudron itself to build and as a registry.

Setup
  1. Install Caprover via one-click DigitalOcean droplet.

with docker-compose

  1. Navigate to AppsCreate A New AppOne-Click Apps/Databases , then search for >> TEMPLATE << or scroll to the bottom.
  2. Select the >> TEMPLATE << app and paste the configuration from caprover/compose.yml.
  3. Name your app oneclick-proof or something else, then click Deploy.

without docker-compose

  1. Navigate to AppsCreate A New App.
  2. Check the box for Has Persistent Data, name your app as oneclick-proof or something else, and then click Create New App.
  3. Navigate to your app settings, then App ConfigsPersistent Directories.
  4. Set Path in App to /usr/src/app/__local and "Label" to oneclick-proof-local; click Save & Restart.
  5. See the update command below to finalize.

Other deployment methods, include uploading a .tar file and deploying code directly from your machine without publishing a Docker image via the Caprover CLI:

git clone https://github.com/0dataapp/oneclick-proof
cd oneclick-proof
caprover deploy
Updates

via Docker image

  1. Navigate to Deployment, enter 0data/oneclick-proof:latest into Deploy via ImageName, then click Deploy. It may take some time after 'finishing' so give it a minute.

via local directory

  1. Call deploy again but with a flag to use the previous configuration:
caprover deploy -d

More info on packaging and deployment:

Setup
  1. Install Coolify via one-click images on Hetzner, DigitalOcean or other hosting platforms.

  2. Navigate to Projects → choose/create a project… → Resources+ NewApplicationsGit BasedPublic Repository.

  3. Configure the following parameters:

    • Repository URL

       https://github.com/0dataapp/oneclick-proof/tree/master
      
    • Build Pack

       Docker Compose
      
    • Docker Compose Location

       /coolify/compose.yml
      
  4. Select Continue and then, on the following Configuration page, click Deploy.

  5. Setup a domain under ConfigurationGeneralDomains by entering something like https://oneclick-proof.[your root domain] and clicking Save, or make a random one by clicking Generate Domain; in case of SSL issues click Redeploy.

Updates
  1. Click Redeploy or AdvancedForce deploy (without cache) to pull from the Git repository.

More information:

Questions

Feel free to reach out on Mastodon or Bluesky.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors