Giter Site home page Giter Site logo

eliona-mock's Introduction

Eliona mock

The Eliona mock is a simple mock for development and testing purposes. Is provides the API and a simplified database as backend. Both, the database and the API are needed to develop and run apps and other Eliona components outside an Eliona environment.

Installation

You need a database initialized with mock objects and an Eliona API server. The API server is available as a docker image in Docker Hub.

It is best to start these images with Docker compose. You can use this docker-compose.yml as template.

Usage

The mock can be used with the following settings if you run the mock on localhost:

  • CONNECTION_STRING = postgres://postgres:secret@localhost:5432
  • API_ENDPOINT = http://localhost:3000/v2
  • API_TOKEN = secret

To authenticate on API either the API key or an JWT bearer token can be used. As a default JWT the following HTTP header can be used.

Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE4NjA4ODMxNzIsInJvbGUiOiJhZG1pbiIsImN1c3RfaWQiOiIwIiwicHJval9pZCI6IjAiLCJ1c2VyX2lkIjoiMCJ9.dIW8xMpx58zVEnl-ck_YanqYyfAZ0q0YSkPV3r_TvmY

By default, an app named example is registered in the database. So you can use this app name to communicate with Eliona. For other app names please change or add the app into the table eliona_app.

  • APPNAME = example

eliona-mock's People

Contributors

andreas-goebel 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.