Coder Social home page Coder Social logo

kaavapino-ui's Introduction

kaavapino-ui

Build Status codecov

UI for editing city planning projects in Kaavapino API

How to run

Before running, make sure that you have created a .env file to the project root with the following environmental variables: REACT_APP_OPENID_CONNECT_CLIENT_ID=X REACT_APP_OPENID_AUDIENCE=X REACT_APP_BASE_URL=X (only needed in production, locally uses proxy, which is defined in package.json) REACT_APP_SENTRY_URL=X (only needed in production) 'REACT_APP_ENVIRONMENT=X' (production, development, testing, staging) 'REACT_APP_OPENID_ENDPOINT=X'

  1. yarn install
  2. yarn start

Developing with fake login (tmporary solution)

To generate token:

  • fire up backend
  • run in api-directory for your username and email
docker-compose -f ./docker-compose.yml exec api ./manage.py createsuperuser

If not working try (Windows):

docker exec -it kaavapino-api /bin/bash
python ./manage.py createsuperuser
  • add token for the same username
docker-compose -f ./docker-compose.yml exec api ./manage.py create_api_token <username>

If not working try (Windows):

docker exec -it kaavapino-api /bin/bash
python ./manage.py create_api_token <user>
  • Add generated token to frontend .env as REACT_APP_API_TOKEN

Generating api data

  • fire up backend
  • copy päivittyvä_Kaavaprojektitiedot.xls to api directory (see Teams)
  • run in api directory
docker-compose -f ./docker-compose.yml exec api ./manage.py import_attributes päivittyvä_Kaavaprojektitiedot.xlsx

If not working try (Windows):

docker exec -it kaavapino-api /bin/bash
python manage.py import_attributes päivittyvä_Kaavaprojektitiedot.xlsx

Deploy staging

Install kubectl locally. Check version and run:

#> pwd
... kaavapino/web/deploy/rancher
#> ./deploy_staging_web.sh web:<version> run

kaavapino-ui's People

Contributors

janti-unikie avatar henrihaapalasiili avatar woltsu avatar sebastiangustafsson avatar kle avatar unikieteemu avatar minnasiili avatar turo-ulvinen-helsinkicityconsult avatar lauhasd2 avatar eemeli-kukkonen-siili avatar dependabot[bot] avatar ronjakoi avatar henryvisuri avatar migleankstutyte avatar jussiarpalahti avatar hughman77 avatar frwickst avatar rikuoja avatar lorand-ibm avatar

Watchers

Lucian avatar  avatar Jukka Paulin avatar James Cloos avatar  avatar  avatar  avatar

kaavapino-ui's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.