https://github.com/douban/helpdesk
Yet another helpdesk based on multiple providers
https://github.com/douban/helpdesk
airflow helpdesk selfservice spincyle st2 stackstorm
Last synced: 3 months ago
JSON representation
Yet another helpdesk based on multiple providers
- Host: GitHub
- URL: https://github.com/douban/helpdesk
- Owner: douban
- License: bsd-3-clause
- Created: 2020-06-02T08:38:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T06:44:20.000Z (over 1 year ago)
- Last Synced: 2024-04-15T00:13:43.889Z (over 1 year ago)
- Topics: airflow, helpdesk, selfservice, spincyle, st2, stackstorm
- Language: Python
- Homepage:
- Size: 3.53 MB
- Stars: 22
- Watchers: 8
- Forks: 7
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# helpdesk
## Development
### backend
```shell
python3.7 -m venv venv
source venv/bin/activate# edit local_config.py
cp local_config.py.example local_config.pyvi local_config.py
# init database
python -c 'from helpdesk.libs.db import init_db; init_db()'# init default policy
PS: the ticket related approval flow(policy), Confirm whether there is a default approval process before ticket operate# export SSL_CERT_FILE='/etc/ssl/certs/ca-certificates.crt'
uvicorn helpdesk:app --host 0.0.0.0 --port 8123 --log-level debug
```Visit on your browser.
The default listening port of backend is 8123PS: The user interface in backend web pages will be replaced by new standalone frontend in next major release, please see ``Standalone frontend`` if you want to modify the ui.
### Standalone frontend
First make sure you have installed latest [nodejs](https://nodejs.org/en/download/)```
cd frontend
npm install
npm run dev
```
Follow the link in the console.PS: If your backend is not hosted in localhost or listening to port other than 8123, please modify the proxyTable config in ``frontend/config/index.js`` , see [Vue Templates Doc](https://vuejs-templates.github.io/webpack/proxy.html) for details
### Add new python dependency
```
pip install
# add to in-requirements.txt
vi in-requirements.txt
# generate new requirements.txt (lock)
pip freeze > requirements.txt
```## Deployment
### Kubernetes
```shell
# build docker image
build -t helpdesk .# push this image to your docker registry
docker tag helpdesk :
docker push :# edit helm values
cp contrib/charts/helpdesk/values.yaml values.yaml
vi values.yaml# install helm package
helm upgrade \
--install \
--name helpdesk contrib/charts/helpdesk \
--namespace=helpdesk \
-f values.yaml
```Get the url from your nginx ingress and visit it.