Giter VIP home page Giter VIP logo

template-microservices's Introduction

ADS Microservice Template Instructions

Template for an ADS microservice project.

Usage

  1. From the main template repository page, click the "Use This Template" button located above the file list. From the dropdown menu, select "Create a new repository".

  2. Name the new repository and add a description. Change the new repository owner and/or permissions as necessary.

    Naming convention: The repository name should end with _service, e.g. reference_service, metrics_service.

  3. Update this README file: remove this instructions section and update the contents:

    • Replace instances of <repo_name> and <package_name>, including within the CI status badge
    • Update stub text (e.g. microservice name, description, maintainers, etc.)
  4. Rename the directory package_name.

    Naming convention: The package name should be a shortened form of the repository name.

  5. Edit the pyproject.toml file:

    • Replace <repo_name> and <package_name>
    • In the [project] section, replace fields as indicated (i.e. name, description, author info)
    • Dependencies go here, instead of in requirements.txt and dev-requirements.txt files
  6. Microservice code goes into the package_name directory. There's a tests sub-directory in there for your unittests.

Features

The new project will have these:

  • Uses pyproject.toml for dependencies (note: older ADS microservices may still use requirements.txt and dev-requirements.txt for dependencies)
  • Provides setup.py
  • Testing with Pytest (locally and using Github actions)
  • Follows the black style guide with flake8 and isort
  • Style guide enforced on CI

Microservice Name

CI Status

Test coverage percentage

Add a description of the project here.

Installation

Install this via pip (or your favourite package manager):

pip install package_name

Development

Install locally into virtualenv.

virtualenv .venv
source .venv/bin/activate
pip install .[dev]
pip install .
pre-commit install
pre-commit install --hook-type commit-msg

Maintainers

Dev 1, dev 2

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.