Giter Site home page Giter Site logo

lazymdc's Introduction

MDC API

This is deprecated and I'm not really maintaining it as it needs to be replaced.

To make it easier for folks to run the containers, headless chrome etc. I have pushed it to docker compose to make it a bit easier to get it setup yourself should you wish to run it

This is WIP so expect some issues though I believe it's fully functional from PDF/PNG Zip downloads and admin interface

Admin Interface

Navigate to URL/admin and you should be able to login

Creating users

As this was not built into the admin interface yet, I have made it so that creating global admins, creating accounts / passwords is simple

$ docker exec mdc-api-1 python -mmdc_api.cli reset-pw --username foobar --password bar

Giving a user global admin

$ docker exec mdc-api-1 python -m mdc_api.cli list-users
1: admin
6: foo
7: foobar

$ docker exec mdc-api-1 python -m mdc_api.cli grant-admin --uid 6

Giving user admin rights for 1 squadron/wing

This can be done multiple times for multiple wings

  • Create the squadron in the UI as an admin
$ docker exec mdc-api-1 python -m mdc_api.cli list-squadrons
1: None
3: somethign

$ docker exec mdc-api-1 python -m mdc_api.cli list-users
1: admin
6: foo
7: foobar

$ docker exec mdc-api-1 python -m mdc_api.cli grant-squadron --uid 6 --sid 3

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.