This is a proof of concept project demonstrating a CRUD (Create, Read, Update, Delete) application for managing a list of snacks. The project is built using Go for the backend, HTMX for handling AJAX requests, and UIKit for the frontend styling.
- Add new snacks
- View a list of snacks
- Update snack details
- Delete snacks
- Real-time updates without page reloads using HTMX
- Responsive design using UIKit
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
- Go (version 1.16 or later)
- Node.js and npm (for frontend dependencies)
- Git
-
Clone the repository:
git clone https://github.com/yourusername/snack-crud-app.git cd snack-crud-app
-
Install Go dependencies:
go mod tidy
-
Install frontend dependencies:
npm install
-
Start the Go server:
go run main.go
-
Open your web browser and navigate to
http://localhost:8080
.
- Click the "Add Snack" button.
- Fill in the snack details in the form that appears.
- Click "Submit" to add the snack to the list.
- The home page displays a list of all snacks.
- Click the "Edit" button next to the snack you want to update.
- Modify the snack details in the form that appears.
- Click "Save" to update the snack.
- Click the "Delete" button next to the snack you want to remove.
Contributions are welcome! Please open an issue or submit a pull request if you would like to contribute to this project.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
This project was created by JB Tellez jumping off from excellent tutorial by Calvin McLean.