Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openmodelica/omwebservice
OpenModelica web service, queries via a REST API
https://github.com/openmodelica/omwebservice
Last synced: about 1 month 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-08T11:20:17.000Z (over 2 years ago)
- Last Synced: 2024-06-11T18:05:52.428Z (7 months ago)
- Language: Python
- Size: 104 KB
- Stars: 4
- Watchers: 10
- 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/