Categorygithub.com/dUPYeYE/go-htmx
repositorypackage
0.0.0-20241128141208-09688dc434b6
Repository: https://github.com/dupyeye/go-htmx.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

GO Backend API with HTMX and TailwindCSS

Boilerplate for a GO backend API with HTMX and TailwindCSS

Features

  • GO Backend API
  • HTMX
  • TailwindCSS
  • Docker

Instructions

  1. Clone the repository
  2. For local use:
    • Populate the .env file with the necessary environment variables based on .env.example
    • Run the following command to initialize the database:
    ./scripts/migrate_up.sh
    
    • Run the following command to start the server:
    go run .
    
    • Access the server at http://localhost:<PORT>
  3. For Docker use:
    • Populate the .env file with the necessary environment variables based on .env.example
    • Run the following command to initialize the database:
    ./scripts/migrate_up.sh
    
    • Run the following command to start the server:
    docker-compose up
    
    • Access the server at http://localhost:<PORT>

API Endpoints

  • api/users
  • TODO: Add more API endpoints

Checks

Tests and Stylechecks

Author

  • dupp