0.0.1 • Published 5 years ago

as-strap v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Boot*strap*

An automation tool for Typescript Web APIs.

License Build Status codecov Node Version NVM Version

Quickly iterate and build Typescript Web APIs that use Express, MongoDB and Redis. The entire Bootstrap process is designed to focus on automation and configuration, and, to minimize the amount of code written.

Currently, this is an early version of the open source version of this tool, and, does not represent anywhere near the same amount of automation that the full version features.

Usage

Install CLI via npm

npm install as-strap --global

Create a new strap project

strap new --name Saucy
cd Saucy
npm install

Generate code via recipes

strap generate schema Comments
strap g route Comments
strap g service Comments

Features to be implemented

Please note that these features will be baked into this system later. Before I release FOSS versions of this tool. I want to make sure the entire process is seemless end to end. This current version does not represent the full product and the below features illustrate what the functionality will be.

  • Auto generate services for Mongoose, Sequelize and Redis that effectively R/W

  • Auto generate routes and socket emitters/receivers of any type.

  • Auto generate validation for routes

  • Auto generate models for Sequelize and Mongoose.

  • Auto generate testing suites with Mocha/Chai, prepopulating with assumed test cases for services, routes and models.

  • Auto generate a project from a Strap schema.

Need help?

Don't fret, you can always open issues for Bootstrap and you can open pull requests if there is anything glaringly wrong with the codebase.