Provides Kapeta language support for Typescript running in NodeJS
Will use the most commonly used / effective libraries for NodeJS and Typescript such as:
- ExpressJS as HTTP server
- Prisma as the database ORM
- NodeMailer for e-mail sending
- React-Email for service side e-mail rendering
This language target is only available for Service blocks.
To lean more about Kapeta, see https://kapeta.com or https://docs.kapeta.com
The structure of this language target is as follows:
Contains the browser-based source used by the Kapeta App when configuring the language target.
Contains the node-based source for generating code for this language target.
Contains the templates used by the target to generate code. These are written using the Handlebars template language.
See https://github.com/kapetacom/codegen-target for more information about the template syntax.
Note: In your block see the kapeta.md file for more information specifically about the code that is generated for your block.
Will add eslint support - lint your code using npm run lint.
When used with a database, will generate database migrations for all changes to the database schema. Uses Prisma to integrate with databases when supported.
Supports the following databases:
- PostgreSQL
- MongoDB
- Redis (Not using Prisma)
Adds prettier support - format your code using npm run format.
Will generate REST clients for all consumed REST APIs
Will generate REST API routes for all provided REST APIs
Will generate a basic keystore provider for creating and signing JWT tokens
If you wish to change the templates or code being generated - consider either opening a PR to if you feel it could be universally beneficial or fork the project and make your own changes - which you can then publish to Kapeta as your own language target.
This project is licensed under the MIT License - see the LICENSE file for details