daptin

command module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2017 License: GPL-3.0 Imports: 12 Imported by: 0

README

GoMS logo

Goms

Deploy Build Status

Goms: A Compiler for Web Components

Goms is a compiler that generates Web Components (more specifically, Custom Elements). Goms combines the best concepts of the most popular frameworks into a simple build-time tool.

Goms takes features such as

Entity names Relations between entities Actions related to different entities Users, User groups and their relation to entities External integration plugins and then generates standards-based JSON based Web APIs with these features baked in.

Since Goms generates JSON API compliant web apis, they can work with many popular languages right out of the box using standard JSON clients, and can be used without a framework because they are just JSON rest APIs. Goms also enables a number of key capabilities on top of Web APIs, in particular Sub site hosting (SSR) without the need to run separate server, an events-actions-outcomes framework, and data-as-objects (instead of just strings).

Compared to building JSON APIs directly, Goms provides extra APIs that makes writing fast frontend apps simpler. APIs like Virtual DOM, JSX, and async rendering make fast, powerful components easy to create, while still maintaining 100% compatibility with Web Components.

The user experience is also tuned, and comes with fully featured dashboard and various site designs baked in to bootstrap.

Why Goms? Goms was created by the DevSupport team to help build faster, more capable APIs over your data that worked across for all types of frontend.

While Goms primarily targeted Web apps, the emergence of Android and IOs Apps as a rapidly growing target for developers demanded a different approach for building the backend. With developers classic use of traditional frameworks and bundling techniques, we struggle to invest enough time in the business and frontend demands for all sorts of Apps that provide consistent and predictable APIs which perform equally well on fast and slow load, across a diversity of platforms and devices.

Additionally, framework fragmentation had created a APIs development interoperability nightmare, where backend built for one purpose needs a lot of boilerplate and integration with the rest of the system, in a consistent way.

A component system around JSON APIs offered a solution to both problems, allowing more time available to be invested into frontend and business building, and targeting a standards-based JSON/Entity models that all frontends can use.

However, JSON APIs for data manipulation by themselves weren't enough. Building apps required a lot of custom actions, workflows, data integrity, event subscription, integration with external services that were previously locked up inside of traditional web frameworks. Goms was built to pull these features out of traditional frameworks and bring them to the fast emerging JSON API standard in an automated way.

State: alpha

Run it and take the tours before reading on

docker run -d -p 8080:8080 goms/goms

Then open Goms Dashboard to sign up and sign-in

Getting started

  • Deploy instance of Goms on a server
  • Upload JSON file which describes your entities,
  • or use XLS file to create entities and upload data
  • Become Admin of the instance (until then its a open for access)

What can be done

Examples

Define your own entities Define relations Subscribe to events Sync changes with other systems Deploy back end server
Todo Belongs to project Send SMS if deadline is today Update a Google Sheet when todo updated Build an android app
Todo Has current status Update manager when employee updates a todo SMS when todo is marked complete Build an Electron app
Cooking Recipe Has many Ingredients Get Slack notification when anyone adds new Recipe Get recipe from Google sheets Build a quick angular app
Wedding has many people called "attendees" Send everyone SMS on updates to wedding party schedule Calender changes with every attendees calender Build a UI using React

How can you use GoMS

  • Goms uses a SQL database and works like a very high level framework/management system

  • Goms asks you to define your domain entities along with their relations in the way you want to organise them.

  • Goms takes the responsibility of giving you following:

    • A responsive dashboard to interact with the system, tested on desktop browsers and mobile browsers
    • A in-built event framework which you can hook to
    • User notifications - Email/Sms/Messengers/Dashboard
    • Actions - Which can be hooked to events, and have multiple outcomes
    • A status tracking system (Visually design a state machine and make it available for any kind of object)

GoMS is a platform which can be customised using Schema files, which describe your requirements and processes.

Tech Goals

  • Zero config start (sqlite db for fresh install, data can be moved to mysql/postgres using goms)
  • A closely knit set of components which work together
  • Completely configurable at runtime, can be run without any dev help
  • Stateless
  • Try to piggyback on used/known standards
  • Runnable on all types on devices
  • Cross platform app using qt (very long term goal. A responsive website for now.)

Competitor products

It will be untrue to say Goms has no competition. These are the possible competing products:

  • Directus - Directus is an API-driven content management framework for custom databases. It decouples content for use in apps, websites, or any other data-driven projects.
  • Cockpit - An API-driven CMS
  • Contentful - Contentful is the essential content management infrastructure for projects of any size, with its flexible APIs and global CDN.

All these products also target to solve the same problem, but differing in the solution pipeline (as an example say database choice or features).

Documentation state

Incomplete, might be confusing.

Please suggest changes using issues or email me

Roadmap

  • Normalised Db Design from JSON schema upload
  • Json Api, with CRUD and Relationships
  • OAuth Authentication, inbuilt jwt token generator (setups up secret itself)
  • Authorization based on a slightly modified linux FS permission model
  • Objects and action chains
  • State tracking using state machine
  • Native tag support for user defined entities
  • Data connectors -> Incoming/Outgoing data
  • Plugin system -> Grow the system according to your needs
  • Native support for different data types (geo location/time/colors/measurements)
  • Configurable intelligent Validation for data in the APIs
  • Pages/Sub-sites -> Create a sub-site for a target audiance
  • Define events all around the system
  • Ability to define hooks on events from UI
  • Data conversion/exchange/transformations
Target

User system

Goms makes two tables for user management

  • user

Every user who is interacting with the system will be associated with a user in Goms.

By default a user is guest

  • usergroup

User and every other entity in Goms is associated to multiple user groups

Each user has his own user group

Ownership

Every object in the system is owned by someone and belongs to multiple Usergroups.

The person who creates the object is the owner by default

Ownership can be changed (by someone who has permission to "write" on that object)

Authentication

Every user is either a guest or a known user (logged in via one of the login providers).

Authorization

Each object in Goms can belong to multiple user groups, where the admin specifies the permission that group users will have for the associated objects.

Permissions are linux filesystem style permission, are 3 digit numbers

  • First digit for owners of the object
  • Second digit for users in the groups which that object belongs to (multiple groups)
  • Third digit for everyone else
1 = Execute Only
2 = Write Only
3 = Write + Execute
4 = Read Only
5 = Read + Execute
6 = Read + Write
7 = Read + Write + Execute

Each table also has these permissions, which are picked up from the world table.

Entities

Goms work with relational entities. You can create entities to represent your work and the relations with other entities.

All entities are stored in a relational database. Currently the following database system support is targeted

  • mysql
  • sqlite
  • postgres

Environment definition

Goms keeps the configuration in database in two tables

  • world

Each table being used by Goms will have an entry in world table. It contains the schema in json as well a default permission column, for new objects in that table.

  • world_column

Each column known to Goms will have an entry in world_column table. It also contains the metadata about the column.

  • actions

Actions are defined on entities, have a set of Input Fields, and a set of Outcomes.

Tech stack

Backend FrontEnd Standards Frameworks
Golang BootStrap JsonAPI Spec CoPilot Theme
Api2go BootStrap JsonAPI CoPilot Theme
Api2go BootStrap JsonAPI Element UI
  • Golang
  • JSONAPI
  • VueJS
  • CoPilot theme
  • a lot of libraries...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
jwt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL