A golang backend providing a simple blogging service
- gRPC: A high-performance, open-source universal RPC framework
- protobuf: A cross-platform, open-source data serialization framework
- viper: A simple, fast, and powerful configuration management library
- jwt-go: A simple, fast, and powerful JWT library
- gin: A high-performance, open-source web framework
- gorm: A simple, fast, and powerful ORM library
- cobra: A fast and easy-to-use command line interface library
- MySQL: A fast, open-source, and easy-to-use database library
- user management
- User registration and login
- get user info, update user info, delete user info, modify user password
- blog management
- get all blogs, get blog by id, create blog, update blog, delete blog
- Generate certificates
$ make ca- Generate protobuf files
$ make protoc- Build target
$ make- Run server
$ _output/platforms/linux/amd64/miniblog -c configs/miniblog.yaml- Test
$ ./scripts/test.sh- Performance test
$ ./scripts/wrktest.sh http://localhost:8080/v1/users