A smol & simple Go web app project boiler plate generator that takes care of registering CRUD handlers, CORS, safe headers, logging, multi-threading, mongodb connection.
- go get -u -v github.com/DesmondANIMUS/genie
- Navigate to your WORKDIR, defaults:
a. Windows:%userprofile%/go/src/github.com/<github_username>/
b. Linux & MacOS:$HOME/go/src/github.com/<github_username>/
- Make sure that "go/bin" folder has been added to environment variable Path
- genie <project_name>
- Enjoy!
- Minimalistic: Minimum, yet useful amount of boiler plate code generation.
- Productivity: Let developers spend more time writing the code that matters & less time on project setup.
- Speed: Code generation should be as fast as possible.
- Generates minimal boiler plate code to get you started.
- Registers handlers for CRUD operations.
- Creates global connection with mongodb that can be extended by cloning the global session.
- Registers CORS on the api.
- Adds "safe" headers in the application like content time, x-frame-options etc. to try and avoid security issues.
- Adds gorilla mux for all handlers.
- Blazing Fast! Works almost instantly!
- Fork the repo and create your branch from master.
- Add the changes/fixes!
- Make sure your code lints.
- Issue that pull request (against
development
branch)!
Please follow contribution guidelines to make things easy for everyone. Thanks ^.^