https://github.com/gaute945/thewinery
crud database to website about wines
https://github.com/gaute945/thewinery
crud database go golang html htmltemplate htmltemplates mariadb template templates
Last synced: 29 days ago
JSON representation
crud database to website about wines
- Host: GitHub
- URL: https://github.com/gaute945/thewinery
- Owner: Gaute945
- License: gpl-2.0
- Created: 2025-10-18T14:17:23.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2026-05-19T17:09:52.000Z (about 2 months ago)
- Last Synced: 2026-05-19T20:43:23.688Z (about 2 months ago)
- Topics: crud, database, go, golang, html, htmltemplate, htmltemplates, mariadb, template, templates
- Language: Go
- Homepage: http://localhost:8080/
- Size: 539 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TheWinery
## TODO (in priority)
1. edit changes nil fields to random memory or "nil"
2. non orderd ids
3. Fining functions only prints for now
4. user accounts / auth
5. real data
6. sorting
## setup (dev)
### mariadb install
after mariadb install run: sudo mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
systemctl start mariadb
### db and user setup
sudo mariadb
CREATE DATABASE TheWinery;
CREATE USER 'JohnDoe'@'localhost' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON TheWinery.* TO 'JohnDoe'@'localhost';
### source the example db
mariadb -u JohnDoe -p
USE TheWinery;
SOURCE create-tables.sql;
### .env config
nano .env
DBUSER=JohnDoe
DBPASS=some_pass
### running
go run .
localhost:8080
### info
I would appreciate having a dialog if you want to make a pull request, Discord: gauteg
'/c' to exit from '->'
'exit' to exit normally