3.9.5 • Published 4 years ago

create-backend v3.9.5

Weekly downloads
16
License
GNU V3
Repository
github
Last release
4 years ago

create-backend

A CLI built in Node.js, to automate the process of creating a rest api / sockets backend basics

Features

✓ Support for ¡MongoDb and Mysql!

✓ Sequelize(Mysql, Postgre, Microsoft Sql, Mariadb) Support

✓ Mysqlm support (Promise Query Streams)

✓ Morgan logger with log folder

✓ Fully ready-to-use Typescript and Vanilla Javascript support

✓ More than 35 Licenses

✓ Express Ready for Promises (Async / Await)

✓ Module Aliases support

✓ Example Endpoint

✓ Fully configured enviroment variables

✓ Production ready

✓ Bulletproof Folder Structure

Usage

Use directly with npx (npx comes installed with npm)

npx create-backend

Then you just answer some prompts and boom! you got a backend.

Advanced Usage

Command Arguments
ArgumentValuesDefaultDescription
-ynonenoneSkip all prompts
--name:String'generated_backend'Project Name
--dbmysql or mariadb or mssql or postgres or mysql_ns (No Sequelize)mysql_ns (No Sequelize)Database engine to be used
--examplenonenoneAdds an example endpoint
-tsnonenoneUse Typescript instead on Vanilla Javascript
--aliasesnonenoneUse Aliases for Modules require's
--licensesee licenses.js'UNLICENSED'Which license will be used
--port:Number3000Which license will be used

Examples

Create project named naza_backend

$ npx create-backend naza_backend

using typescript

$ npx create-backend naza_backend -ts

using typescript and postgressql

$ npx create-backend naza_backend --db=postgres

using javascript and mariadb

$ npx create-backend naza_backend --db=mariadb

TODO

  1. Testing (Jest, Mocha)
  2. Microservices (Using cota, not so soon)
  3. Generate backend based on .sql script (model and controllers)
  4. MongoDb support
  5. Joi for schema validation (Probably not)
  6. Express custom error handling

Screenshot:

Alt text

3.9.5

4 years ago

3.9.4

4 years ago

3.9.3

4 years ago

3.8.6

4 years ago

3.8.5

4 years ago

3.8.4

4 years ago

3.8.3

4 years ago

3.8.2

4 years ago

3.8.1

4 years ago

3.8.0

4 years ago

3.7.1

4 years ago

3.7.0

4 years ago

3.6.9

4 years ago

3.6.8

4 years ago

3.6.7

4 years ago

3.6.6

4 years ago

3.6.5

5 years ago

3.6.4

5 years ago

3.6.3

5 years ago

3.6.2

5 years ago

3.6.1

5 years ago

3.6.0

5 years ago

3.5.9

5 years ago

3.5.8

5 years ago

3.5.7

5 years ago

3.5.6

5 years ago

3.5.5

5 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.9.7

5 years ago

1.9.5

5 years ago

1.9.3

5 years ago

1.9.2

5 years ago

1.9.1

5 years ago

1.9.0

5 years ago

1.8.0

5 years ago

1.5.5

5 years ago

1.5.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.5

5 years ago