1.6.4 โ€ข Published 4 years ago

blowpack v1.6.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Blowpack MVC Framewok

Quick Overview

npx blowpack my-app
cd my-app
npm start // for CSR
npm run ssr:start // for SSR Build and Start Server

To create a new app, you may choose one of the following methods:

npx

npx blowpack my-app

(npx is a package runner tool that comes with npm 5.2+ and higher, see instructions for older npm versions)

npm

npm init blowpack my-app

npm init <initializer> is available in npm 6+

Yarn

yarn create blowpack my-app

yarn create <starter-kit-package> is available in Yarn 0.25+

It will create a directory called my-app inside the current folder. Inside that directory, it will generate the initial project structure and install the transitive dependencies:

npm start or yarn start For CSR Rendering

Runs the app in development mode. Open http://localhost:3000 to view it in the browser.

The page will automatically reload if you make changes to the code. You will see the build errors and lint warnings in the console.

npm run ssr:start or yarn ssr:ssrFor SSR Rendering

Runs the Server Side Render app in development mode. Open http://localhost:3000 to view it in the browser.

The page will automatically reload if you make changes to the code. You will see the build errors and lint warnings in the console.

API service npm run api or yarn api

Runs te api service on nodejs server Open http://localhost:5000/api to view api in browser

Custom configuration for APP

you can modify owr custom configuration to system with config>core>BassConfig.js file and edit some parameter.

   
    CRS_PORT : 3000,             // Client Side Render Port 
    SSR_PORT : 3000,             // Server Side Render Port
    
    // Api Services Port
    API_PORT: 5000,
    
    // Data Bass Configuration
    ConnectToDB  : true,         // Enable Connection
    testConnect  : true,         // Show Connection Massage
    SHOW_DB_INFO : true,         // Show Databass information in Terminal
    dialect      : 'mysql',      //  mysql , sqllite , mssql , mariadb , postgres ,  
    DB_NAME      : 'blowpack',   // Databass Name
    DB_USERNAME  : 'root',       // Databass UserName
    DB_PASSWORD  : 'root',       // Databass Password
    DB_HOST      : '127.0.0.1',  // Databass Hostname
    DB_PORT      : '3306',       // Databass Port
    MONGODB_PORT : '27017'       // MongoDB Port

License

Blowpack Framework is open source software based on Facebook Reactjs, Webpack and some sofwares licensed as MIT.

Author

My nam is Hadi, I'm a little developer from Iran but I not a terrorist! ๐Ÿš€ I mostly tweet about diversity and equality in tech ยท he/him