Giter Site home page Giter Site logo

genan's Introduction

GenAn

MIT

DSL for definition of client-side application based on AngularJS and ExpressJS backend utilizing Mongo Database, so it basically can be used as a MEAN stack application generator.

Installation:

git clone https://github.com/theshammy/GenAn.git

Run genan.py in src package from command line: python genan.py source_path output_path For more options, run python genan.py --help .

Dependencies:

  • Arpeggio
  • textX
  • Jinja2
  • Click
Database
  • mongoDB
  • robomongo db client
Backend
  • node.js and npm: https://nodejs.org/en/download/ or better:
  • use nvm, follow installation manual from https://github.com/creationix/nvm and then install:
  • node.js and npm v5.12: nvm install v5.12
  • express: npm install -g express
  • express generator: npm install -g express-generator
  • express cli: npm install -g express-cli
  • gulp: npm install -g gulp

Usage:

There are three concepts in GenAn:

  • Object: Contains properties which are basic component or views. These properties describe how an entity should be visualized.
  • View: Part of a page, containing other views or object references.
  • Page: HTML page, containing views or object references.

Examples are located in test directory.

Once executed, GenAn will generate html pages described in a .gn file using the after mentioned concepts. GenAn also provides AngularJS application and node.js backend generation.

Documentation will be available soon.

genan's People

Contributors

bojanaz avatar danielkupco avatar drilic avatar igordejanovic avatar lazer-nikolic avatar radekornjaca avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

genan's Issues

Easing up project running

Make project runnable by simple command like "python genan.py" and using a environment configuration file which contains names of directories and paths that could be used anywhere in the project (instead of hardcoding them or using some sort of magic pathfinding).

State overriding

Implement a mechanism for overriding angular state with new view and controller.

Page layout support

  • Bootstrap layout
  • Border layout for content with navbar, sidebar and footer
  • Sidebar on pages
  • Menubar on pages
  • Grid layout for views

Support for nested views

Generate a div element with class corresponding to its path. For example, user_view inside of user_page should generate a div with "user_page.user_view" class.

Viewing FK entities

Enabling view of foreign key entities by using "nested" routes on the backend.

FK entities

Implementation of loading and binding of foreign key entities defined in 'Meta' grammar rule.

Frontend templates correction

  • - Meta (foreign key) properties interpretation
  • - Form templates and controller correction for fk meta fields
  • - Templates for displaying multiple entities
  • - Templates for displaying single entity

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.