0.14.1 • Published 4 months ago

create-sip v0.14.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

create-sip

Simple project generator.

Project types

  • Simple webpage. index.html and style.css
  • Webpage with Bootstrap with CDN.
  • Webpage with CSS and JS file.
  • Node.js project for webpage.
  • ESBuild and Javascript project for webpage.
  • ESBuild and Typescript project for webpage.
  • Mock REST API server.
  • Express.js REST API start server.

Using

npm create sip@latest
  • Write project name.
  • Select project type.

Express API

Key generation:

node op key:generate

Afte project generation, you have an config/default.json file. If you want generate a new file, delete the config/default.json file and run next command:

node op conf:generate

Create model:

node op create model <name>

Create controller:

node op create controller <name>

Exmple:

node op create model employee
node op create controller employee

Database

Default database type is sqlite :memory:. If you want to use another database, edit the config/default.json file. For example SQLite:

{
    "app": {
        "port": 8000,
        "key": "",
        "log": "console.log"
    },
    "db": {
        "dialect": "sqlite",
        "host": "127.0.0.1",
        "name": "",
        "user": "",
        "pass": "",
        "path": "database.sqlite"
    }
}

Must be set the database path in the config/default.json file.

Default admin user

Generate admin user:

node op admin:generate
0.14.1

4 months ago

0.13.0

5 months ago

0.12.1

5 months ago

0.14.0

5 months ago

0.12.2

5 months ago

0.12.0

5 months ago

0.10.9

5 months ago

0.11.0

5 months ago

0.10.8

7 months ago

0.10.3

7 months ago

0.10.4

7 months ago

0.10.5

7 months ago

0.10.6

7 months ago

0.10.7

7 months ago

0.10.0

7 months ago

0.10.1

7 months ago

0.9.0

7 months ago

0.10.2

7 months ago

0.0.15

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago