Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Nestjs Realworld Example App | 2,489 | a month ago | 42 | TypeScript | ||||||
Exemplary real world backend API built with NestJS + TypeORM / Prisma | ||||||||||
Spring Security React Ant Design Polls App | 1,617 | a month ago | 45 | Java | ||||||
Full Stack Polls App built using Spring Boot, Spring Security, JWT, React, and Ant Design | ||||||||||
Nacos Docker | 1,087 | 6 days ago | 49 | Shell | ||||||
This project contains a Docker image meant to facilitate the deployment of Nacos . | ||||||||||
Spring Boot Spring Security Jwt Authentication | 697 | 6 months ago | 10 | Java | ||||||
Spring Boot + Security: Token Based Authentication example with JWT, Authorization, Spring Data & MySQL | ||||||||||
Apevolo Api | 421 | 9 days ago | 1 | apache-2.0 | C# | |||||
.Net 6.0 、SqlSugar、Vue、RBAC、前后端分离的开箱即用的企业级中后台权限管理系统 | ||||||||||
Laconia | 320 | 2 years ago | 4 | mit | PHP | |||||
🏺 A minimalist MVC framework. | ||||||||||
Node Express Passport Mysql | 317 | 3 years ago | 9 | JavaScript | ||||||
Login Express + Passport + MySQL | ||||||||||
Mysql | 305 | 19 | 13 | 2 months ago | 16 | September 15, 2022 | 13 | mit | PHP | |
Async MySQL database client for ReactPHP. | ||||||||||
Express Rest Api Boilerplate | 274 | 4 years ago | 11 | mit | JavaScript | |||||
Express REST API with JWT Authentication and support for sqlite, mysql, and postgresql | ||||||||||
Docker Ejabberd | 248 | 2 years ago | 32 | mit | Shell | |||||
Dockerfile for Ejabberd server |
Simple api that serves recipes for puppies. This project is a step by step guide on how to create a simple api using Go programming language. The purpose of the project is to demonstrate to new comers the language basic features and concepts.
The exercise is based on recipepuppy free api. All the puppy recipes used were also retrieved from there.
docker-compose up -d
Set up required databases. At each execution recreates database and re imports data.
make db
Set up/reset only dev-db
make db-dev
Set up/reset only test-db
make db-test
Most of the project values can be configured by editing config.yaml, config file is located under the project root folder.
You can override any config value by using environmental values, for example to override token.ttl you need to set an environmental variable with key RECIPE_TOKEN_TTL
Project is using Viper config a complete configuration solution for Go applications
make test
make run
make build
make lint
if you are behind a corporate firewall using a custom certificate use
make lint-insecure
Project is using golang lint linter
Get recipe
http://127.0.0.1:8080/api/recipe/1 [GET]
Get Recipes
http://127.0.0.1:8080/api/recipes?ingredient=onions&ingredient=garlic&term=omelet&page=1 [GET]
User Sign up
http://127.0.0.1:8080/api/user/signup [POST]
{
"email":"[email protected]",
"username":"username2",
"password":"password",
"repeatPassword":"password",
"fullName":"test user"
}
User Sign in
http://127.0.0.1:8080/api/user/signin [POST][body]
{
"username": "username1",
"password": "password"
}
User Profile
http://127.0.0.1:8080/api/user [GET]
For your convenience Postman collection/environment files are available at
api/Recipes.postman_collection.json
api/Recipes.postman_environment.json
Available Parameters explanation:
You can view swagger docs after running the app here http://127.0.0.1:8080/swagger/index.html
Project is using swaggo/swag to generate/update swagger docs you can install the cli using the following command
go get github.com/swaggo/swag/cmd/swag
Update swagger docs
swag init --dir cmd/api --output api/swagger
or
make swagger
This project is licensed under the MIT License - see the LICENSE file for details