Getting Started#
Requirements#
Your server/development computer must meet these requirements in order to run Invention Framework Apps:
- PHP v7.4.0 or higher
- NodeJS JavaScript Runtime v12.0.0 or higher
- PHP PDO extension with sqlite and mysql driver
- PHP JSON extension
Installation#
You can install Invention using Composer:
composer create-project onesoft-sudo/invention-project myapp
This will create an Invention project in myapp/ directory.
Quick start#
Make sure that PHP is installed globally, otherwise the app might not work properly. Go to your project directory and run:
npm install
npm run dev
php console serve
The first command installs the project dependencies, the second one compiles the javascript and css files and puts them into the public/ folder and the last command starts a local development server (PHP's built in dev server) at localhost:8080.
You can now open http://localhost:8080 using your favourite browser.