Giter Club home page Giter Club logo

algoritmeregister-api's Introduction

algorithmregister-api

An API to get remote data, cached in a database, for algorithmregister

How to start

Development:

  • Create a Python 3 virtual env named venv and activate it.
  • Install requirements inside your virtual env with python -m pip install -r requirements.txt
  • Set up and customize the environment variabels, see below
  • Start application with ./algorithmregister.sh

Production:

  • Build Docker image (see Dockerfile)
  • Create container with the required environments variabels (see below, customize them)
  • Start container, the application will be exported under port 8000

Handy endpoints

API homepage OpenApi docs Import data

Environment variables

Set the following environment variabels before starting the application.

USERS={"demo": "test12345"}
BACKEND_CORS_ORIGINS_CSV=http://localhost,http://localhost:4200,http://localhost:3000

About USERS variabel

The USERS variabel defines the list of users with password. This should be a secret value. The list is a JSON object, property is the username, value is a plain password string (we need to change this to hashed values in the near feature).

Example:

{
  "tim": "insecure-password",
  "tom": "another-insecure-password"
}

algoritmeregister-api's People

Contributors

milovanderlinden avatar

Watchers

 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.