-
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 upgo build cmd/http/server.goto run local build you need a mysql server running, the easiest way is using docker
docker compose up mysql -dThen run the server
./serverto run local build you need a mysql server running, the easiest way is using docker
docker compose up mysql -dgo run cmd/http/server.goto build cli into binary file run
go build cmd/cli/cli.gothen you can run all cli commands with the binary file
./cli -hif you`re developing something in the cli the best way is run it directly to all changes
go run cmd/cli/cli.gocreate new domain (crud):
./cli create-domain {{domain}}destroy domain:
./cli destroy-domain {{domain}}migrate all domains:
./cli migrateEnter in zord image:
docker exec -it zord-http shBuild cli binary:
go build cmd/cli/cli.goUse it:
./cli -hIf 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