2019-08-17 19:50:17 +03:00
# Nextcloud App Tutorial
2015-01-10 13:40:38 +03:00
2020-02-03 15:43:02 +03:00
[![PHPUnit GitHub Action ](https://github.com/nextcloud/app-tutorial/workflows/PHPUnit/badge.svg )](https://github.com/nextcloud/app-tutorial/actions?query=workflow%3APHPUnit)
[![Node GitHub Action ](https://github.com/nextcloud/app-tutorial/workflows/Node/badge.svg )](https://github.com/nextcloud/app-tutorial/actions?query=workflow%3ANode)
[![Lint GitHub Action ](https://github.com/nextcloud/app-tutorial/workflows/Lint/badge.svg )](https://github.com/nextcloud/app-tutorial/actions?query=workflow%3ALint)
2015-01-10 13:40:38 +03:00
2020-11-20 11:23:03 +03:00
This is the [tutorial app ](https://docs.nextcloud.com/server/latest/developer_manual/app_development/tutorial.html ) which shows how to develop a very simple notes app.
2019-08-17 19:50:17 +03:00
## Try it
To install it change into your Nextcloud's apps directory:
2015-01-10 02:25:43 +03:00
2017-07-30 12:28:19 +03:00
cd nextcloud/apps
2015-01-10 02:25:43 +03:00
2023-01-13 16:30:42 +03:00
Then clone this repository into a folder named **notestutorial** ¹:
2015-01-10 02:25:43 +03:00
2017-07-30 12:28:19 +03:00
git clone https://github.com/nextcloud/app-tutorial.git notestutorial
2015-01-10 02:25:43 +03:00
2017-07-31 22:34:15 +03:00
Then install the dependencies using:
2019-08-17 19:50:17 +03:00
make composer
2017-07-31 22:34:15 +03:00
2023-01-13 16:30:42 +03:00
¹ It is important that the directory is named exactly like the app ID (see `appinfo/info.xml` ).
2019-08-17 19:50:17 +03:00
## Frontend development
2017-08-03 12:57:25 +03:00
2019-08-17 19:50:17 +03:00
The app tutorial also shows the very basic implementation of an app frontend using [Vue.js ](https://vuejs.org/ ). To build the frontend code after doing changes to its source in `src/` requires to have Node and npm installed.
2017-07-30 12:28:19 +03:00
2019-08-17 19:50:17 +03:00
- 👩💻 Run `make dev-setup` to install the frontend dependencies
- 🏗 To build the Javascript whenever you make changes, run `make build-js`
2017-07-30 12:28:19 +03:00
2019-08-17 19:50:17 +03:00
To continuously run the build when editing source files you can make use of the `make watch-js` command.