-
Notifications
You must be signed in to change notification settings - Fork 5
Home
GOlang base repository with code gen to create a fast golang project based on hexagonal architeture
Remember to create your .env file based on .env.example
Up mysql and zord project:
docker compose up
go build cmd/http/server.go
to run local build you need a mysql server running, the easiest way is using docker
docker compose up mysql -d
Then run the server
./server
to run local build you need a mysql server running, the easiest way is using docker
docker compose up mysql -d
go run cmd/http/server.go
to build cli into binary file run
go build cmd/cli/cli.go
then you can run all cli commands with the binary file
./cli -h
if you`re developing something in the cli the best way is run it directly to all changes
go run cmd/cli/cli.go
create new domain (crud):
./cli create-domain {{domain}}
destroy domain:
./cli destroy-domain {{domain}}
migrate all domains:
./cli migrate
Enter in zord image:
docker exec -it zord-http sh
Build cli binary:
go build cmd/cli/cli.go
Use it:
./cli -h
If you`re generating code inside docker container you need to change generated folder and file permissions to code out of docker container.
run the follow command to edit generated files:
sudo chown $USER:$USER -R .
if you have a group name different from username change the command accordingly
Want to contribute? Great!
The project using a simple code. Make a change in your file and be careful with your updates! Any new code will only be accepted with all validations.
Not Empty Foundation - Free codes, full minds