Skip to content
/ hackathon-template Public template

πŸš€ Boilerplate for hackathon projects β€” React + Flask, fully Dockerized and ready to run with one command.

License

Notifications You must be signed in to change notification settings

Kelocker/hackathon-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ Project Status

πŸ”– Latest Release 🐳 Docker Compose Manual Build

πŸ“˜ Project Setup Instructions

This project uses Docker + Docker Compose to run a full-stack app with a React frontend and a Flask backend.


βœ… Step 1: Use This Template

  1. Click the green "Use this template" button at the top of the page
  2. Create your own repository based on this template

Use this template


βœ… Step 2: Build and Run the App with Docker

After cloning your repository into your machine, run:

docker compose up --build

Open your browser and check:

βœ… Both should be running fine.


βœ… Step 3: Changing GitHub Action (Optional)

⚠️ Disclaimer (Please read)

This project includes a GitHub Actions workflow set to manual-only (workflow_dispatch).
No automated workflows will run during cloning, pushing, or using this template β€” unless a user explicitly chooses to run them.

If you click "Run workflow" or manually enable automatic workflows
(e.g., by renaming .github/workflows/docker-composer-autobuild.txt to .yml),
you are doing so at your own discretion and accept full responsibility for any usage, billing, or side effects.

This template is provided as-is. I maintain versioning and structure, but I am not responsible for:

  • GitHub Actions billing
  • Workflow behavior (e.g., broken Docker builds)
  • Security or compliance of any changes made after using this template
βš™οΈ What the Manual GitHub Action Does (By opening this, you agree to the disclaimer above)

When you click β€œRun workflow” in the Actions tab, the workflow:

  1. Checks out the current branch
  2. Sets up Docker with BuildKit support
  3. Runs docker compose build
    β†’ This builds the frontend and backend images using the Dockerfile and docker-compose.yml

βœ… No containers are run
❌ No tests or deployments
πŸ”’ Only builds β€” safe for checking Docker config

⚠️ Note: Running this workflow will consume GitHub Actions minutes. Please be mindful of usage if you're on a free plan without GitHub Education or Pro benefits. Refer to the disclaimer above for more details on usage, responsibility, and billing.

βš™οΈ What the Automatic GitHub Action Would Do (By opening this, you agree to the disclaimer above if re-enabled)

If you rename .github/workflows/docker-composer-autobuild.txt to .yml,
this workflow will be automatically triggered on:

  • βœ… Any push to any branch
  • βœ… Any pull request targeting the main branch (excluding .md or documentation-only changes)

πŸ”§ What it does:

Automatically runs on code-related changes (excluding markdown and docs):

  1. Checks out the current branch
  2. Sets up Docker with BuildKit support
  3. Runs docker compose build
    β†’ This builds both the frontend and backend images using the Dockerfile and docker-compose.yml

⚠️ Key Behavior:

  • This workflow will run every time code is pushed or a pull request is opened
  • If the Docker build fails (e.g., due to code errors or misconfigurations), the workflow will fail
  • This consumes GitHub Actions minutes, even if the push is small

⚠️ Enable this only if you are confident in your Docker setup
and accept the billing and runtime implications of automated workflows.

πŸ“Œ Refer to the disclaimer above for full details regarding usage responsibility and billing.


βœ… Step 4: Start Coding

You can now edit your code in your editor β€” Docker will reflect the changes automatically via volume mounting.


πŸ” After Pulling Updates from GitHub

Always rebuild after pulling code to ensure updates (especially dependencies) are applied:

docker compose up --build

🧼 Optional: Clean Up Occasionally

If you’ve been switching branches or running lots of containers/images:

docker system prune -a --volumes -f

⚠️ This removes all unused containers, images, volumes, and networks. Use with care.


✍️ Template Info

This project template is created and maintained by Kelocker.
Original repository: hackathon-template

If you find this useful, feel free to ⭐ the repo or mention it in your own project!

About

πŸš€ Boilerplate for hackathon projects β€” React + Flask, fully Dockerized and ready to run with one command.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published