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.
- git clone <any_dir>
- cd <any_dir/genie>
- go install
- Navigate to your any dir
- Make sure that "$HOME/go/bin" folder has been added to environment variable Path
- genie <project_name>
- Enjoy!
Make sure you have MongoDB Server installed and running. Generated code makes connections with MongoDB by default. It'll panic if it cannot connect to a running instance. You may switch to a different database post code generation if it doesn't fit your requirements.
- 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 ^.^