Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/germainlefebvre4/landscape-api
Landscape use to register your applications and relating environments.
https://github.com/germainlefebvre4/landscape-api
Last synced: 15 days ago
JSON representation
Landscape use to register your applications and relating environments.
- Host: GitHub
- URL: https://github.com/germainlefebvre4/landscape-api
- Owner: germainlefebvre4
- Created: 2020-04-05T13:46:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T20:05:18.000Z (over 3 years ago)
- Last Synced: 2024-10-10T20:52:03.896Z (about 1 month ago)
- Language: Python
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Landscape Api
## Prerequisite
Python versions covered:
* `Python 3.6`
* `Python 3.7`
* `Python 3.8`## Getting started
### Init database
```sh
pipenv run flask init-db
```
### Run the app
```sh
pipenv run flask run --host=0.0.0.0 --port=8080
```
Browse the app on localhost port 8080.## Pipenv
### Prepare
```sh
pipenv update
```### Runtime
```sh
pipenv run python main.py
```### Systemd service
```
[Unit]
Description=Landscape API Service
After=multi-user.target[Service]
User=root
WorkingDirectory=/opt/python/landscape-api
Restart=always
Type=simple
ExecStart=/usr/local/bin/pipenv run python main.py
StandardInput=tty-force[Install]
WantedBy=multi-user.target
```