mdl-qor-sdk

command module
v0.0.0-...-50b1eba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 13 Imported by: 0

README

Grand Lyon Métropole SDK for admin type applications

This SDK is based upon QOR and aims to provide a boilerplate for quickly prototyping admin types applications.

Install

Clone the repository and cd mdl-qor-sdk.

Use with docker

Build the container

./build.sh

If it doesn't build, remove or rename the './data/business.db' file.

Start the services

./up.sh

Usage

Open the admin interface, log with username : demo and password : demo and try the UI.

User configuration

Open the keycloak interface, log with username : admin and password : admin and manage your users (in the "mdl" realm).

Use directly (for coding)

Setup

Golang must me installed and $GOPATH environnment variable set. Exec ./setup.sh.

Start keycloak

./keycloak-up.sh

Start the app

Start the application with ./start-without-docker.sh.

Debug

Use the "Debug Server with Keycloak" VS Code debug configuration.

Code

Alter the 'models.go' file to add your own models and restart the app. They are automatically added to the admin interface. Access them through the api by using the model route + .json (example : http://localhost:8081/admin/employees.json). Use the common REST methods on this endpoint to create, alter and delete entities.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL