https://github.com/ignf/geoportal-configuration
Generation of configuration JSONs for Geoportal JS APIs
https://github.com/ignf/geoportal-configuration
Last synced: 12 months ago
JSON representation
Generation of configuration JSONs for Geoportal JS APIs
- Host: GitHub
- URL: https://github.com/ignf/geoportal-configuration
- Owner: IGNF
- Created: 2023-02-17T09:37:15.000Z (about 3 years ago)
- Default Branch: new-url
- Last Pushed: 2025-02-28T10:51:46.000Z (about 1 year ago)
- Last Synced: 2025-02-28T10:58:32.175Z (about 1 year ago)
- Language: Python
- Size: 51.8 MB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# geoportal-configuration
Generation of configuration JSONs for Geoportal JS APIs
## Dependency install
`pip3 install -r requirements.txt`
## CLI usage
`python main.py key1 key2...`$
Config files are generated in `dist` directory
## Launch web interface
### Without Docker
`python -m flask run --host=0.0.0.0`
### With Docker
`docker build --tag gpconnfig . && docker run gpconfig`
## Use web interface
### Form
Go to the index of the deployed web inteface with a web browser. Example: https://geoportal-configuration.onrender.com/
### API
`curl http://host:port/api?key1,key2,...`
Example: https://geoportal-configuration.onrender.com/api?keys=essentiels