{"repo":"nix-united/golang-echo-boilerplate","free":true,"listed":false,"github":"https://github.com/nix-united/golang-echo-boilerplate","clone":"git clone https://github.com/nix-united/golang-echo-boilerplate.git","description":"Golang API Starter Kit based by Echo","language":"Go","stars":339,"topics":["golang","golang-boilerplate"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Welcome to Echo boilerplate 👋 It's an API Skeleton project based on Echo framework. Our aim is reducing development time on default features that you can meet very often when your work on API. There is a useful set of tools that described below. Feel free to contribute! What's inside: - Registration - Authentication with JWT - CRUD API for posts - Migrations - Request validation - Swagger docs - Environment configuration - Docker development environment Usage 1. Copy .env.dist to .env and set the environment variables. There are examples for all the environment variables except COMPOSE USER ID, COMPOSE GROUP ID which are used by the linter. To get the current user ID, run in terminal: echo $UID In the .env file set these variables: COMPOSE USER ID=\"username in current system\" - your username in system COMPOSE GROUP ID=\"user uid\" - the user ID which you got in the terminal 2. Run your application using the command in the terminal: docker-compose up 3. Browse to {HOST}:{PORT}/swagger/index.html. You will see Swagger 2.0 API documents. 4. Using the API documentation, make requests to register a user (if necessary) and login. 5. After the successful login, copy a token from the response, then click \"Authorize\" and in a popup that opened, enter the value for \"apiKey\" in a form: \"Bearer {token}\". For example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODk0NDA5NjYsIm9yaWdfaWF0IjoxNTg5NDM5OTY2LCJ1c2VyX2lkIjo1fQ.f8dSG3NxFLHwyA5-XIYALT5GtXm4eiH-motqtqAUBOI Then, click \"Au","default_branch":null,"files":null,"tree":[],"storefront":"/r/nix-united","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nix-united/golang-echo-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."}