source: src/mapservice/codegen/code_generator@ 5e4cb73

debian/bullseye
Last change on this file since 5e4cb73 was 5e4cb73, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago

Refactored mapservice

  • mapservice is a connexion python webservice with openapi defined api
  • mapservice-webclient is a angular app, consuming the openapi webservice mapservice
  • Property mode set to 100755
File size: 668 bytes
RevLine 
[3a89adb]1#!/bin/bash
2
3DIR=`dirname "$0"`
4
5echo "Preparing symlinks"
6cd ${DIR}/../src-gen/openapi_server/
7if [ ! -L server_impl ]; then
8 ln -s ../../src/server_impl/
9fi
10
11echo "Copying static files"
12cp -a ../../src/templates ./
13cp -a ../../src/static ./
14mkdir -p static/css/
15mkdir -p static/js/
16mkdir -p static/resources/
17cp -a ../../../common/css/* static/css/
18cp -a ../../../common/js/* static/js/
19cp -a ../../../common/resources/* static/resources/
20cp -a ../../../../icon/gnuboat-256-256-transparent.png static/resources/
21
22cd ../../
23codegen/openapi-generator-cli generate -i openapi.yaml -g python-flask -t codegen/templates/ -o src-gen
24
25cd src-gen/
26python3 -m openapi_server
Note: See TracBrowser for help on using the repository browser.