Giter VIP home page Giter VIP logo

solo-extension's Introduction

Introduction

Design you features easily with JSON and use available code blueprints to generate your codes.

Example

1. Prepare Templates

Copy sample templates from samples to templates under Documents folder of the current user profile.

NOTE: This is going to be automated in the future. Something similar to package managers: solo i <unique_templlate_name> -v <optional_version>

2. Configure Your Solution

Build your solution config and save it as config.json under a folder called design in your working directory.

{
    "name": "Project X",
    "description": "",
    "features": [
        {
            "name": "Frontend Example",
            "design": "design1",
            "blueprints": {
                "reactjs-sample": "1.0"
            }
        },
        {
            "name": "Backend Example",
            "design": "design1",
            "blueprints": {
                "aspnet-sample": "1.0"
            }
        }
    ]
}

3. Design Your Feature

Designing a feature is as simple as building class and property definitions. But you are not limited to following ER design style as long as your code blueprints properly consume them.

While you are in solo folder, save the following code in a folder called designs with filename design1.json.

{
    "id": "design1.json",
    "name": "Feature 1",
    "description": "test1",
    "solution": "SoloTest",
    "context": "Feature1",
    "items": [
        {
            "name": "Foo",
            "properties": [
                {
                    "name": "Id",
                    "type": "int",
                    "description": "id desc"
                },
                {
                    "name": "Name",
                    "type": "string",
                    "description": "name desc"
                }
            ]
        }
    ]
}

3. Open The Solo Explorer

Check out your designs. You can also see code generator priview as code-tree.

solo-extension's People

Watchers

Solomon Amognu avatar

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.