Skip to content

The Apache Thrift/TypeScript generator with Angular2 support

Notifications You must be signed in to change notification settings

apocarteres/t2ng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

t2ng

The Apache Thrift/TypeScript generator with Angular2 support

This is simple Java program which generates TypeScript files by provided Apache Thrift IDL. It will be worth if you are going to build robust interaction between your Angular2 app and back-end. As the result you will have Java, JavaScript and TypeScript entities where TypeScript modules and components are compatible with Angular2.

Live demo

Live demo. Spring4 / Angular2 / Apache Thrift and t2ng - https://github.com/apocarteres/spring4-angular2-t2ng

How to run using Docker

  • create folder idl and put some Thrift files (.thrift extension) inside it

  • run docker

 docker run -it --rm -v=`pwd`/idl:/app/idl -v=`pwd`/out:/app/out -e "PROJECT_NAME=myprojectname" apocarteres/t2ng
  • check out generatd files in out folder

NOTE: Don't forget set your project name via PROJECT_NAME environment variable

How to run locally

java -jar t2ng.jar -p myproject -i /path/to/idl -s /output/myproject

How to build

mvn clean compile assembly:single

build and push Docker container

docker build -t apocarteres/t2ng . docker push apocarteres/t2ng

About

The Apache Thrift/TypeScript generator with Angular2 support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published