Skip to content

Repository files navigation

CMS Bootstrap for Python

A Python example project for CMS-SDK.

This example uses docker images provided by cms-docker-compose. Learn more details about the docker images in the link.

Requirements

  • composer
  • docker
  • python 3.5 or higher

Setup

  1. Set up venv.
    1. python3 -m venv .venv && source ./.venv/bin/activate
  2. make install
  3. make cms-up will start docker containers.
  4. Wait for several seconds until the conainers startup.
  5. make cms-db for sample db migration. If it fails, try again in a few seconds.
  6. python sample.py will run the sample code.
    1. Or python sample_flask.py will run the sample flask web server, then you can browse to http://127.0.0.1/example/home.
  7. make cms-down for shutting down the containers.

APIs

See here for all available APIs.

About

A skeleton project to create RIDI CMS service with Python

Topics

Resources

Stars

4 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages