very-express
v0.5.25
Published
based on json schema and openapi, generate Express RestApi server with mongoDb
Readme
VeryExpress
this is a generator to make Express app
with custom REST API defined in Json Schema and Open Api
Features
- generate simple express.js server.
- generate custom REST API.
- API Validator by express-validator
- generate OpenApi
- Swagger UI Express
- OAuth by Passport.js
- Database Driver
- MongoDB by Mongoose
Why use ExpressJs
express.js is a simple & flexible framework to build a web app, it provide balanced performance,
as this is open-source project, i want lower the technical barrier to contribute ideas,
eventually lead to a usefull and powerful framework.
Quick Start
install package globally.
npm i -g very-expressuse cli to initialize configuration file vex.config.json under your project root directory.
vex -initcreate a empty directory and name it as value of vex.config's "jsonSchemaDir", by default
jsonSchema.mkdir jsonSchema.you can create your db collection/table now in directory
./jsonSchemajust created,
refer to Define Json Schmea, every changes require to regenerate app.generate the app with vex.config param.
vexyou should saw a express typescript app being generated (with src, package.json etc) .
├── jsonSchema/ │ └── ... ├── src/ │ └── ... ├── package.json ├── tsconfig.json ├── vex.config.json └── .envstart the generated express app.
npm i npm build npm run start
