Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from Melkeydev:main #2

Open
wants to merge 68 commits into
base: main
Choose a base branch
from
Open

[pull] main from Melkeydev:main #2

wants to merge 68 commits into from

Conversation

pull[bot]
Copy link

@pull pull bot commented Dec 26, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

Adding advanced flag and new major version
@pull pull bot added the ⤵️ pull label Dec 26, 2023
Ujstor and others added 28 commits December 26, 2023 20:00
Readme leftover fix
Adding Go blueprint version command
Removing the need to have duplicate .env files - generate a single file
Releasing terminal
Adding Docs to go-blueprint
Adding check for git config
* Merged near identical templates
Adds support for advanced features to be chosen inside flags (#184)
Add websocket endpoint to advanced options (#192)
Fix: Add build step for generated project (#196)
Update after Blueprint UI release
add ServerHeader and AppName to FiberServer configuration
ghAction workflow check if there is a new htmx version
* [DATABASE Template] [MYSQL] Implement singleton pattern

- [+] feat(mysql.tmpl): implement singleton pattern for dbInstance in New function

* Fix Correct dbInstance Assignment Syntax

- [+] fix(mysql.tmpl): correct dbInstance assignment syntax

Note: This a fix syntax for example it can be used multipe services such as
dbInstance = &service{
		db:       db,
		authuser: NewServiceAuthUser(db), // Initialize the auth user service
	}

* Implement singleton pattern for MongoDB

- [+] feat(mongo.tmpl): implement singleton pattern for MongoDB connection instance

* [Database Template] [SQL Lite] Implement singleton pattern

- [+] feat(sqlite.tmpl): implement singleton pattern for database instance creation

* [Database Template] [Redis] Implement singleton pattern

- [+] feat(redis.tmpl): implement singleton pattern for database instance creation

Note: This method same as MongoDB must use `sync.Once`

* [Database Template] [Postgres] Implement singleton pattern

- [+] feat(postgres.tmpl): implement singleton pattern for database instance

* Style [Database Template] [MySQL] [Singleton Pattern]

- [+] style(mysql.tmpl): improve readability by formatting dbInstance assignment

* Style [Database Template] [SQL Lite] [Singleton Pattern]

- [+] style(sqlite.tmpl): improve readability by formatting dbInstance assignment

* Revert "Implement singleton pattern for MongoDB"

This reverts commit 50a0409.

* Revert "[Database Template] [Redis] Implement singleton pattern"

This reverts commit 8ddfb1a.
* [Database Template] [MYSQL] Enhance Health Function

- [+] feat(mysql.tmpl): enhance Health function with comprehensive database connection statistics

* Fix [Database Template] [MYSQL] Error Messages

- [+] fix(mysql.tmpl): update 'message' field in Health() to display actual error message instead of static text

* [Database Template] [Postgres] Enhance Health Function

- [+] feat(postgres.tmpl): enhance Health function to return detailed database statistics and health messages

* Refactor [Database Template] Health Function

- [+] refactor(dbdriver): remove redundant error message in Health function for both mysql and postgres templates

* Fix Package Issue

- [+] feat(postgres.tmpl): import strconv package
- [+] fix(postgres.tmpl): remove unnecessary trailing line at the end of the file

* [Database Template] [SQL Lite] Enhance Health Function

- [+] feat(sqlite.tmpl): enhance Health method with detailed database statistics and health messages

* Fix [Database Template] [MySQL] Line End of File

- [+] style(mysql.tmpl): add newline at end of file

* Revert "Fix [Database Template] [MySQL] Line End of File"

This reverts commit f40ad89.

* Fix [Database Template] [SQL Lite] Line End of File

- [+] style(sqlite.tmpl): add newline at end of file

* Fix [Health Stats] Lower threshold for heavy load message

- [+] fix(dbdriver): lower threshold for heavy load message from 90 to 40 in mysql, postgres and sqlite templates
…abase Connection (#204)

* Implement [Database Template] [MYSQL] Close Database Connection

- [+] feat(mysql.tmpl): add Close() method to Service interface and its implementation
- [+] docs(mysql.tmpl): add comments for Service interface and its methods

Note: By using the "log.Printf" method, it is more concise and idiomatic Go.

* Implement [Database Template] [PostgreSQL] Close Database Connection

- [+] feat(postgres.tmpl): add Close method to Service interface and its implementation

* Implement [Database Template] [SQLite] Close Database Connection

- [+] feat(sqlite.tmpl): add Close() method to Service interface and its implementation in service struct

* Fix Linting Issue

- [+] fix(dbdriver): update log message to use correct database name and URL variables in postgres and sqlite templates

* Fix [DB] [Postgres] Linting Issue

- [+] fix(postgres.tmpl): change DB_DATABASE to database in disconnect log message
- [+] feat(redis.tmpl): add TLS configuration to Redis connection setup
Htmx-gh-action-fix
Ujstor and others added 30 commits June 13, 2024 21:27
* update workflows
* Ignore no git user.email if we're skipping git
* moved handler_test.go to internal/server package and renamed routes_test.go, updated docs
* air (live reload) will work on windows
Implements Tailwind CSS and tmpl Makefile build + improve templating instructions based on the specific OS
* add graceful shutdown for the http server.
Dockerfile and docker compose config
Fix Gin FS
Add tailwind classes
* Add output.css to .gitignore if Tailwind is used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.