Git Product home page Git Product logo

lupadoku's Introduction

lupadoku

Document search application. Accesses Lupapiste MongoDB directly and Onkalo search API through HTTP.

Configuration

lupadoku-config.edn has defaults for local development. You can overwrite necessary values by creating lupadoku-config-local.edn which is included in .gitignore.

MongoDB connection

Lupadoku does searches directly into the Lupapiste main database. It only needs read-only permissions. Configure the database connection string under the :db key. You can include ssl=true to use SSL/TLS encryption with the connection, e.g.:

:db {:uri "mongodb://lupapiste_ro:<password>@server.example.tld:port/lupapiste?ssl=true"}

Onkalo API

Configure Onkalo API URL and credentials under :http :arkisto, e.g.:

:http {:arkisto {:host    "https://www.lupapiste.fi/onkalo"
                 :app-id  "app-id"
                 :app-key "app-key"}}

Builds and deployment

Builds are done by ci.lupapiste.fi. Deployment is done with Ansible, code and configuration are in lupapiste-ansible project. Deployment to dev, test, qa and production environments is handled by ci.lupapiste.fi

Production deployment occurs when a build from master branch is promoted in Jenkins UI.

Development

Start a repl:

lein repl

and run the application:

(go)

Reload all changed (back-end) namespaces:

(reset)

Front-end development

Develop front-end with shadow-cljs:

lein front

Note that npm dependencies required by the shared code in document-search-commons must be declared in lupadoku project's package.json as that project only includes CLJS libraries loaded via Leiningen.

You should symlink document-search-commons under checkouts for front-end development, as shadow-cljs expects to access sources from there as well. Styles are also located under document-search-commons. Run sass in document-search-commons for continuous css build when altering styles:

npm run sass:watch

To extract strings for translation, create a symlink to translations.txt under document-search-commons

ln -s ../document-search-commons/resources/translations.txt resources/translations.txt

and then run

lein extract-strings

License

Copyright © 2024 Cloudpermit Oy

Distributed under the European Union Public Licence (EUPL) version 1.2.

lupadoku's People

Contributors

mpenttila avatar

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.