- Install using brew
brew tap The-Grand-Stew/stew
brew install stew
./stew [OPTIONS]
or
go run cmd/main.go [OPTIONS]- Export your access github token
export HOMEBREW_GITHUB_ACCESS_TOKEN="your-token" - Run
stew --helpfor all command options - Run a command and follow the steps
- To deploy on AWS, make sure the credentials are exported as env variables (Stew checks for only env vars now, profiles and loading credentials is in development)
export AWS_SECRET_ACCESS_KEY=""
- To get an CLI "app" tour:
stew play
- Fiber
- Express
- FastAPI (coming soon)
- ECS Fargate
- Cloudrun (Coming soon)
- Linux/MacOS
- Go >= v1.17
- Preferred Code editor: VSCode
- All public code goes inside this package
- The code/packages written under pkg can be used universally (that means by any other application across the Go world)
- One package inside pkg cannot import from another package under pkg
- Eg of packages to put under pkg can be "logging",common functions calling external web apis, database connection scripts
- All code internal to the application i.e business specific logic goes inside internal
- The code within this will never be public.
- All your main entrypoint (main.go) go in here
https://gochronicles.com/writing-go-code-like-a-pro/
https://gochronicles.com/dependency-management-in-go/
Go templates for different languages and frameworks.
Command bash commands that need run when setting up services. Eg go mod init needs to run when setting up go services
Handling stew config file .stew thats created when a service is setup
Contains all specific code for setting up services in a language and framework
Main commands for stew. Where each ".go" file is a command in stew
Refer: https://blog.gopheracademy.com/advent-2017/using-go-templates/