https://github.com/openmodelica/omwebservice
OpenModelica web service, queries via a REST API
https://github.com/openmodelica/omwebservice
Last synced: 3 months ago
JSON representation
OpenModelica web service, queries via a REST API
- Host: GitHub
- URL: https://github.com/openmodelica/omwebservice
- Owner: OpenModelica
- Created: 2020-05-25T19:30:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-08T11:20:17.000Z (about 3 years ago)
- Last Synced: 2025-03-24T03:35:06.096Z (4 months ago)
- Language: Python
- Size: 104 KB
- Stars: 5
- Watchers: 9
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OMWebService
OpenModelica web service, queries via a REST API## Dependencies
- [Python >= 3.8.5](https://www.python.org/)
- [Python setuptools](https://pypi.org/project/setuptools/)
- [OpenModelica >= 1.19.0](https://openmodelica.org)## Build & Run instructions
### Option 1
Set environment variable `FLASK_ENV=development` for development environment.
Install the dependencies and then run the following commands,```bash
$ cd /path/to/OpenModelica/OMWebService
$ python -m pip install -U .
$ python Service/app.py
```### Option 2
Use the Dockerfile provided to run with docker,
```bash
$ cd /path/to/OpenModelica/OMWebService
$ docker build . -t openmodelica/omwebservice
$ docker run --user nobody -p 8080:8080 openmodelica/omwebservice
```In your browser, open the URL http://localhost:8080/api/