Skip to content
/ Blank Public

Microservices platform for rapid CRUD applicaitons developing

License

Notifications You must be signed in to change notification settings

getblank/Blank

Repository files navigation

Blank

Microservices platform for rapid CRUD applicaitons developing

Install

You need Node.js, npm and MongoDB installed on your system. We suggest to use Docker MongoDB 3.2 image

After setting up MongoDB run:

npm install blank-cli -g

Usage

blank init newApp
cd ./newApp
blank server

Compile with /lib/reactComponents

blank dist

Run server with /lib/reactComponents dev mode

blank server|one --dist

Run server with dist/bundle.js and chunks

blank server|one --with-dist

Web server will be reached on http://localhost:8080/;

Default username/password: root/toor

Development

Run Blank from src:

node /path/to/Blank/index.js server --dir=./

Where ./ is a directory with application config.

Services

blank-sr

https://github.com/getblank/blank-sr

Services registry - central point of all Blank infrastructure.

blank-router

https://github.com/getblank/blank-router

Component for work with client connections. Handles clients requests and manages workers tasks queue.

blank-node-worker

https://github.com/getblank/blank-node-worker

Blank application server. Processes tasks from queue.

Blank.json

Webpack custom settings

{
    ...
    "webpackConfig": {
        "externals": {
            "pdfjs-dist": "pdfjsDistWebPdfViewer",
            "pdfjs-dist/lib/web/pdf_link_service": "pdfjsDistWebPdfViewer.PDFJS"
        }
    }
}