flaschengeist-frontend/README.md

91 lines
2.0 KiB
Markdown
Raw Normal View History

# 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
## Installation
### Requirements
```
"engines": {
"node": ">= 12.22.1",
"npm": ">= 6.14.12",
"yarn": ">= 1.21.1"
}
```
So on debian (buster and bullseye) you will need to install node.js and yarn beside the debian packages to meet the needed versions.
```bash
pushd ~/opt
wget https://nodejs.org/dist/v16.2.0/node-v16.2.0-linux-x64.tar.xz
tar -xJf node-v16.2.0-linux-x64.tar.xz
export PATH="$(pwd)/node-v16.2.0-linux-x64/bin":"$PATH"
npm i -g yarn
npm i -g @quasar/cli
popd
```
### Install the dependencies
2020-10-02 07:13:14 +00:00
```bash
yarn install
2019-12-20 12:45:37 +00:00
```
Be aware npm might not work.
2019-12-20 12:45:37 +00:00
### Configure Plugins
You can activate and deactive Plugins in `src/boot/plugins.ts`.
You have to set the name of the Plugin into `config.loadModules`.
### Configure Backend
The application is using the API of [the backend](https://flaschengeist.dev/Flaschengeist/flaschengeist)
This access needs to be configured in `src/config.ts'->config.baseURL
- either you do have a proxy webserver that maps the '/api' to the backend (http://localhost:5000) or
- you do directly configure the backend there:```baseURL: 'http://localhost:5000'```. Be aware not committing this configuration.
### Build the application
```bash
yarn quasar build
2020-10-31 14:38:20 +00:00
```
## Development
### Icons used
We are using the `mdi-v5` icon set, so feel free to use any icon from it.
A list can be found [here](https://materialdesignicons.com/)
2020-10-31 14:38:20 +00:00
### Commands useful for development
2020-10-31 14:38:20 +00:00
#### Start the app in development mode
2020-10-31 14:38:20 +00:00
Provides 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
```
#### File linting
2020-10-02 07:13:14 +00:00
```bash
yarn run lint
2019-12-20 12:45:37 +00:00
```
### Plugins
#### Build a Plugin
A Flaschengeist-Frontend-Plugin should be placed in `src/plugins`.
It needs a `plugin.ts` File which exports a plugin with the following interface:
```
name: string;
mainRoutes?: PluginRouteConfig[];
outRoutes?: PluginRouteConfig[];
requiredModules: string[];
version: string;
2019-12-20 12:45:37 +00:00
```
You have to import `FG_Plugin` from `plugins.d.ts`.