This page is part of the App Framework Documentation
Creating a new application project my-app is easily done in the following four steps:
- Run
mkdir my-app
to create a new folder my-app - Run
cd my-app
to open the folder my-app - Run
echo {} > package.json
to create a package.json file - Run
npm install --save-dev app-framework@1
to- install App Framework and its dependencies
- create the project folder structure
- complete the package.json file
After the installation process finished, you should see this folder structure.
You can run npm run dev
to see if your new app opens in the browser.
If there is a newer version of App Framework available at the npm repository, there will be an alert at the development server.
You have to update App Framework per application project by running npm update --save-dev app-framework
.
The proper way to install the App Framework is to include it as a dev-dependency in your app's package.json file, i.e. it must be installed as a module, and not cloned as a repo. The npm install command will generate the appropriate directories in your app's root directory, and will add the relevant scripts to your app's package.json file.