Skip to content

Latest commit

Β 

History

History
44 lines (37 loc) Β· 1.65 KB

README.md

File metadata and controls

44 lines (37 loc) Β· 1.65 KB

πŸ’¬ Blog

Simple Go blog

πŸ“„ Routes

  • /auth
    • /sign-up POST SignUp
    • /sign-in POST SignIn
  • /api
    • /users
      • /:user_id GET GetUserById
      • / GET GetAllUsers
      • / PUT UpdateUserById πŸ§‘ auth
      • / DELETE DeleteUserById πŸ§‘ auth
    • /posts
      • / POST CreatePost πŸ‘‘ auth / admin
      • / GET GetAllPosts
      • /:post_id GET GetPostById
      • /:post_id PUT UpdatePostById πŸ‘‘ auth / admin
      • /:post_id DELETE DeleteUserById πŸ‘‘ auth / admin
      • /:post_id/comments
        • / POST CreateCommentByPostId πŸ§‘ auth
        • / GET GetCommentsByPostId
    • /comments
      • /:comment_id PUT UpdateCommentById πŸ§‘ auth
      • /:comment_id DELETE DeleteCommentById πŸ§‘ auth

πŸ› οΈ Built with

  • Go 1.21.4
  • MySQL 8.0.34

πŸ“¦ Libraries

Name Module Version
gin github.com/gin-gonic/gin 1.9.1
jwt github.com/golang-jwt/jwt/v5 5.1.0
viper github.com/spf13/viper 1.17.0
logrus github.com/sirupsen/logrus 1.9.3
sqlx github.com/jmoiron/sqlx 1.3.5
mysql github.com/go-sql-driver/mysql 1.7.1
crypto golang.org/x/crypto 0.15.0