Skip to content

Golang Framework inspired by Django

License

Notifications You must be signed in to change notification settings

jeagercoder/gorim

This branch is 4 commits behind rimba47prayoga/gorim:master.

Folders and files

NameName
Last commit message
Last commit date
Oct 21, 2024
Nov 27, 2024
Nov 21, 2024
Oct 30, 2024
Nov 27, 2024
Oct 18, 2024
Nov 21, 2024
Nov 27, 2024
Nov 22, 2024
Nov 27, 2024
Nov 27, 2024
Nov 12, 2024
Nov 12, 2024
Nov 21, 2024
Nov 21, 2024
Nov 12, 2024
Nov 21, 2024
Oct 5, 2024
Nov 14, 2024
Nov 22, 2024
Nov 22, 2024
Nov 7, 2024
Nov 22, 2024
Nov 22, 2024
Nov 14, 2024
Oct 7, 2024
Nov 21, 2024

Repository files navigation

gorim

Golang Framework inspired by Django

Gorim features

  • Global Settings

    • Database
    • Server
    • Middlewares
  • GenericViewSet

    • GetQuerySet
    • GetObject
    • PKField: unique identifier for retrieving single object (default: id)
    • Filter
    • Pagination
  • Mixins

    • CreateMixin
    • UpdateMixin
    • ListMixin
    • RetrieveMixin
  • Serializer

    • support single field validation
    • default Create & Update
  • Permissions

    • DEFAULT_PERMISSION_STRUCTS as global settings (default: permissions.IsAuthenticated)
  • DefaultRouter

    • Type Parameter with validation (/users/int:id)
    • DefaultRouter.RegisterFunc: for adding new route from extra handler function
  • Middlewares

    • Change to struct instead of function
    • RecoverMiddleware: for seamless error handling
    • LoggerMiddleware: request logger in terminal with time ellapsed
  • Errors

    • errors.Raise: to stop current process and immediately Response to client
  • utils

    • HasAttr: checks if a struct has a field or method with a given name
    • GetObjectOr404: Generic function to get object or return 404
  • Migrations

    • Generate tables for tracking migration
    • Track migration with versioning hash
    • Datamigration / Query execution with only once applied
  • cmd

    • runserver: only runserver without migration
    • warning message if there's unapplied migration
    • migrate: run migrations

About

Golang Framework inspired by Django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%