Git Product home page Git Product logo

beta-platform's People

Contributors

a-hilaly avatar aelbouchti avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

beta-platform's Issues

Cobra CLI support

Needed command line formats:

Startup pre check

medtune-beta start

Run server

medtune-beta start --port=8080 --debug=true

Get version

medtune-beta version

Sync models

medtune-beta sync-db

Capsule's client

Before diving into Capsules project, we could create a simple client that will handle inference and look ups on Tensorflow freezed models.
Keep in mind that gRPC is required also TensorflowServing signatures

Session package and initpkg

Actually session functions are written at server/middleware, normally we should keep only the middleware functions, and move other logic to pkg/session

Models logic implementations

For example for user model we can have functions that directly handles users authentication /creation etc ... same for all other models

Debug web site for dev support

Separating application logic from the user interface, in order to accelerate design developpement and isolate business components.

go run main.go --debug to show-up all compiled templates would be awesome

Data validation package

at pkg/validator we need a certain API for validating data objects all sort of uploaded images/videos/archives etc
Keep in mind extensions aren't enough for validating files. Reading headers is the right way.

Login middleware

Instead of handling session logic at each route , it would be easier to set a middleware for all private content:
Something like this example works but only if we abort connection.

import (
	"github.com/gin-contrib/sessions"
	"github.com/gin-gonic/gin"
)

func LoggedOnly() gin.HandlerFunc {
	return func(c *gin.Context) {
		s := sessions.Default(c)
		if v := s.Get("logged"); v == nil || !v.(bool) {
			c.AbortWithStatus(404)
			return
		}
	}
}

Initpkg production and debug mode

pkg/Inits is responsible for initialising all necessary packages that are used by the server.

We need two different modes for running inits: Debug and Production. Debug mode should allow skipping some initialisations while Production mode need to panic() whenever something is going wrong at startup.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.