BestProduct helps developers to build successful applications, available on iOS, Android, Windows, macOS, BestOS, Linux and all the Unix like operating systems with the ultimate power of NodeJS and JavaScript in your hands.
Built with:
Tip
First, create a full-stack project in your BestDeveloper Portal, using JavaScript as the default language.
Clone this repository:
git clone https://github.com/BestMat/bestproduct-bestdeveloper.git
Goto the directory:
cd bestproduct-bestdeveloper
Install all your favourite tools in NodeJS by NPM. For React and other frameworks, use the CDN or Node Dependency.
Install the needed dependencies:
npm install
Edit your index.html
file and add your CSS and JavaScript Files in the src
directory.
In your server.js(Node file), call the function startDevServer, and give the first parameter as "desktop", and the second parameter, as a function. Inside this anonymous function, type what do you want to do, when the application has started.
bestproduct.startDevServer("desktop", function(){ // you can also use ES6 arrow functions
console.log("My application has started!");
});
Now run the server.js
file - node server.js
In your server.js(Node file), call the function startDevServer, and give the first parameter as "desktop", and the second parameter, as a function. Inside this anonymous function, type what do you want to do, when the application has started, for the third parameter, type windows
or mac
or linux
or bestos
bestproduct.startProductionServer("desktop","windows/mac/linux/bestos", function(){ // you can also use ES6 arrow functions
console.log("My application has started!");
});
Now run the server.js
file - node server.js
The bestproduct.config.json
is the main configuration file. Data from config, is used to configure the application.
This is a mandatory field. Enter your application as the value of this key. The defualt value is "Test".
This is also a mandatory field. It creates a package.json file (Node package). It is your version control system your application.
This is also a mandatory field. It imports the given dependencies. If there are no packages to import, leave it as empty. Do not keep it as null or undefined or false
This is mandatory. Enter your script and the style directory respectively. This is mandatory. When you are developing the product, please change the value to development. When you are going to publish the app to Google Play Store or App Store or the operating system's defualt store app, change it to "production". This is mandatory. If your product is using **React** - The framework for building UI websites by Facebook, or using JSX set this as totrue
, and add a property in the packages key as react, babel, and the needed packages for a development build of React.
This is mandatory. If your product is using **TypeScript** - the strict type language for JavaScript, set this as to true