flaschengeist-frontend/README.md

52 lines
1007 B
Markdown
Raw Normal View History

2020-10-02 07:13:14 +00:00
# Flaschengeist (flaschengeist-frontend)
2019-12-20 12:45:37 +00:00
Modular student club administration system.
Licensed under the MIT license.
2020-10-02 07:13:14 +00:00
## Install the dependencies
2020-10-02 07:13:14 +00:00
```bash
yarn install
2019-12-20 12:45:37 +00:00
```
2020-10-31 14:38:20 +00:00
## Plugins
2020-10-31 14:38:20 +00:00
### Build a Plugin
2020-10-31 14:38:20 +00:00
A Flaschengeist-Frontend-Plugin should be placed in `src/plugins`.
It needs a `plugin.ts` File which exports a plugin with the following interface:
2020-10-31 14:38:20 +00:00
```
name: string;
mainRoutes?: PluginRouteConfig[];
outRoutes?: PluginRouteConfig[];
store?: Map<string, Module<any, StateInterface>>;
requiredModules: string[];
version: string;
```
You have to import `FG_Plugin` from `plugins.d.ts`.
### Configure Plugin
You can activate and deactive Plugins in `src/boot/plugins.ts`. You have to set the name of the Plugin into `config.loadModules`.
The order of the plugins is importend!
2020-10-02 07:13:14 +00:00
### Start the app in development mode (hot-code reloading, error reporting, etc.)
2020-10-02 07:13:14 +00:00
```bash
yarn quasar dev
2019-12-20 12:45:37 +00:00
```
2020-10-02 07:13:14 +00:00
### Lint the files
2020-10-02 07:13:14 +00:00
```bash
yarn run lint
2019-12-20 12:45:37 +00:00
```
2020-10-02 07:13:14 +00:00
### Build the app for production
2020-10-02 07:13:14 +00:00
```bash
yarn quasar build
2019-12-20 12:45:37 +00:00
```