{"repo":"shunwatai/fiber-rest-boilerplate","free":true,"listed":false,"github":"https://github.com/shunwatai/fiber-rest-boilerplate","clone":"git clone https://github.com/shunwatai/fiber-rest-boilerplate.git","description":"golang REST API boilerplate with supports for postgres, mariadb, sqlite & mongodb","language":"Go","stars":10,"topics":["boilerplate","fiber","golang","rest-api","crud-api","docker","htmx","mariadb","mongodb","sqlite"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"Fiber REST boilerplate with HTMX This is my personal repo just for fun which for spinning up golang REST API quicker and to learn about golang and HTMX. It runs by fiber with pre-defined CRUD examples which follows the Controller-Service-Repository pattern like Spring boot or Laravel's architecture. Features - With implementations of postgres , sqlite , mariadb , mongodb in internal/database/ . Just raw sql without ORM. - Swtich between different DBs driver by changing the database.engine in config. - With example of pre-defined modules in internal/modules/ . They come with CRUD APIs and support Filtering, Sorting, Pagination etc. - User - Group - example of assigning users - TBD access control of modules - Todo - example of request by form-data for uploading documents - HTMX web templates with tailwind & alpinejs . - With a script cmd/gen/gen.go for generate new module in internal/modules/ . - JWT auth, login sample by curl. - Can generate swagger doc by swag . - Make use of viper for loading env variables in config. - With a logging wrapper by zap which uses as middleware for writing the request's logs in log/ , the log file maybe used for centralised log server like ELK or Signoz. - Can run in both non-docker or docker environment. Quick start by docker-compose 1. Start the databases containers. Skip this if use Sqlite. 2. Run migrations with the desired database(pg/mariab/sqlite/mongodb) 3. Set the db driver in configs/docker.yaml 3. Start fiber api by docker 4. Test the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/shunwatai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shunwatai/fiber-rest-boilerplate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}