2021-08-21 14:17:14 +00:00
# UPschooling
2021-08-21 10:58:00 +00:00
2021-08-21 14:17:14 +00:00
Place this app in **nextcloud/apps/**
2021-08-21 10:58:00 +00:00
2021-08-21 14:17:14 +00: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)
2021-08-21 10:58:00 +00:00
2021-08-21 14:17:14 +00: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.
2021-08-21 10:58:00 +00:00
2021-10-09 15:24:04 +00:00
## Development
2021-08-21 10:58:00 +00:00
2021-10-09 15:24:04 +00:00
Docker or Podman is required for the dev environment.
Other than that composer and npm/nodejs must be installed.
2021-08-21 10:58:00 +00:00
2021-10-09 15:24:04 +00:00
### Mac OS
2021-08-21 10:58:00 +00:00
2021-10-09 15:24:04 +00:00
```shell
brew install coreutils
```
2021-08-21 10:58:00 +00:00
2021-10-09 15:24:04 +00:00
### All
2021-08-21 10:58:00 +00:00
2021-10-09 15:24:04 +00:00
```shell
npm install
make
```
2021-08-21 10:58:00 +00:00
2021-10-09 15:24:04 +00:00
### Start dev environment
2021-08-21 10:58:00 +00:00
2021-10-09 15:24:04 +00:00
Starting the development environment with your container runtime should be as easy as
2021-08-21 10:58:00 +00:00
2021-10-09 15:24:04 +00:00
```shell
./run.sh
2021-10-09 17:04:23 +00:00
make watch-js
2021-10-09 15:24:04 +00:00
```
2021-08-21 10:58:00 +00:00
2021-08-21 14:17:14 +00:00
## Frontend development
2021-08-21 10:58:00 +00:00
2021-08-21 14:17:14 +00: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.
2021-08-21 10:58:00 +00:00
2021-08-21 14:17:14 +00:00
- 👩💻 Run `make dev-setup` to install the frontend dependencies
- 🏗 To build the Javascript whenever you make changes, run `make build-js`
2021-08-21 10:58:00 +00:00
2021-08-21 14:17:14 +00:00
To continuously run the build when editing source files you can make use of the `make watch-js` command.