Giter Site home page Giter Site logo

betelgeuse-suite / betelgeuse Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.71 MB

An all-in-one solution to manage configuration and content versioning in native mobile apps.

License: MIT License

TypeScript 99.16% JavaScript 0.84%
configuration-management language-files versioning deployment-manager

betelgeuse's Introduction

Betelgeuse

An all-in-one solution to manage configuration and language versioning in native mobile apps.

or

A full-blown configuration deployment service.

Why?

TLDR; So you can fix typos in a matter of minutes not days.


1. Saves Time

The changes are deployed on the fly, skipping the need for a new submission to the App Store.

2. Takes the developer out of the loop

The Language files now reside outside of the source code able to be updated (and automatically deployed) by anybody in the team not only the developer

3. Built with the developer in mind

All the language/config bundles are type safe out of the box, and betelgeuse ensures there are no runtime errors.

How does it work?

Server Side:

Looking at it from the Server's perspective, a Betelgeuse Bundle at it's core is a simple git repository of yaml files, living somewhere remotely (like Github or your own private server)

Anytime a change is commited and pushed, a webhook triggers a Betelgeuse process (that runs on a server), which:

  1. Compares the changes with the current version
  2. Figures out the Release Type (Major, Minor, Patch - following Semver)
  3. Compiles all the YAML files into a single JSON file
  4. Looks at the new JSON file and generates a Typed Model based on its schema (Typescript and Swift currently)
  5. Increments the Version based on its Release Type and Adds it to a Version Registry file inside the repo
  6. Tags the current Repo state, and pushes the changes

Client Side:

From the Client's perspective, the Betelgeuse Bundle is a valid dependency (NPM Package or CocoaPod currently), that comes with the SDK, the Data (the generated json file) and the Typed Model, and can easily be installed like any other dependencies using: pod install or npm install

This gives access to the Data and brings Type Safety out of the box at development time, so the developer always knows what the data looks like. And yes, s/he gets Autocomplete!

alt Autocomplete Typescript

alt Autocomplete Swift

After the App is deployed, the SDK seemingly checks for updates in the background and downloads the best version (latest non-breaking release). At the next App Start (or Load), the new Data is in effect.

Legend

Breaking Version

  • a yaml key rename
  • a yaml key remove
  • a type change

Non-Breaking Version

  • value change
  • key additions
  • value added to an Array

Getting Started

Give me on 1sec :)

Development

Global Dependencies

npm i -g typescript

npm i -g typings

npm i -g ts-node

Usage

ts-node ./src/index.ts --help

betelgeuse's People

Contributors

gabrielctroia avatar

Stargazers

 avatar

Watchers

 avatar  avatar

betelgeuse's Issues

Build a CLI to make it easier for users to initiate a Bundle

I believe this would be really useful in hands-off product demo.

Imagine only having to:

Initialize a Bundle:
$ betelgeuse bundle init

Support platforms
$ betelgeuse bundle support ios
$ betelgeuse bundle support web

Compile source
$ betelgeuse compile

Deploy
$ betelgeuse deploy


This would clearly help down the line, but it in the beginning I think initiating a new app, is the single most important one, so the user doesn't have to add all the necessary files to make it a valid package.

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.