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!
- Star & Fork the repo.
- Propose an issue.
- Wait until that issue is assigned to you.
- Make pull request on development branch!
- Enjoy!
Take a look at project's wiki to understand the different parts of this little project.
Please follow contribution guidelines to make things easy for everyone. Thanks ^.^