Getting Started

Learn how to setup and deploy the Go Uploader Template.

🚀 Prerequisites

Before proceeding, ensure you have the following ready:

  • A Cloudflare Account with a configured R2 bucket.
  • A domain name managed in Cloudflare.
  • A VPS or server to host the uploader (e.g., DigitalOcean, AWS, or any hosting provider).
  • Go (version 1.23 or higher) installed on your local machine or server.

Need help setting up Cloudflare R2?

Need help generating API tokens?

📦 Installation

Follow these steps to set up the Go Uploader Template locally:

1. Clone the Repository

Download the template from GitHub to your local machine:

git clone https://github.com/ResyncedDesign/UploaderTemplate.git
cd UploaderTemplate

2. Configure the Environment

The template uses a .env file to manage sensitive settings.

  1. Copy the .env.example file to .env:

    cp .env.example .env
    
  2. Fill out the .env with your Cloudflare creditentials

3. Start the Application

Run the application locally to test your setup:

go run src/main.go

You’ll see the server start successfully, indicating the app is live. By default, it will run on http://localhost:your-port. Test it using a tool like Postman or Insomnia.

4. Deploy to Your Server

Once everything works locally, you can deploy the uploader to your server. Refer to the Deployment Guide for detailed instructions on VPS configuration and hosting.

💡 Next Steps

Now that your Go Uploader Template is running, you can:

  1. Customize it to suit your needs (e.g., add authentication, logging, etc.).
  2. Use it with your favorite frontend frameworks to integrate seamless file uploads.
  3. Explore advanced setups, including reverse proxies and HTTPS configurations.