Skip to content
Frontend for Leuchtturm Bachelorproject (Beacon in the Dark)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
client/lampenhaus
common
config
tests
.flake8
.gitignore
.gitlab-ci.yml
LICENSE
README.md
app.py
autoapp.py
deploy_frontend_odin.sh
lint_test_build_frontend_local.sh
package-lock.json
react_app_blueprint.py
requirements-dev.txt

README.md

Installation

The React project was generated with create-react-app lampenhaus and later ejected using npm run eject

To start the React project in 'development mode' do

cd client/lampenhaus

npm i

npm start

To build the React project and serve the app with flask

cd client/lampenhaus

npm run build

# You can then serve the minified, 'pure' HTML/JS/CSS files with this:

cd frontend

# make sure to have flask installed: pip install flask
export LEUCHTTURMMODE="DEVELOP" # to access localhost, "PRODUCTION" to access Solr instance on cluster workstation (see config.ini for IP)
export FLASK_APP=autoapp.py
export FLASK_DEBUG=1 # enables verbose logging and other debugging help
flask run # includes hot reloading

# go to localhost:5000/app

Testing Flask API

run pytest

You can’t perform that action at this time.