5

GitHub - vmware/repository-service-tuf-api: Repository Service for TUF: API

 1 year ago
source link: https://github.com/vmware/repository-service-tuf-api
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Repository Service for TUF API

This service is in Experimental stage.

Repository Service for TUF API is part of Repository Service for TUF.

Usage

Repository Service for TUF Repository API Docker Image documentation

Development tools

  • Python >=3.10
  • Pipenv
  • Docker

Getting source code

Fork the repository on GitHub and clone it to your local machine:

git clone [email protected]:YOUR-USERNAME/repository-service-tuf-api.git

Add a remote and regularly sync to make sure you stay up-to-date with our repository:

git remote add upstream https://github.com/vmware/repository-service-tuf-api
git checkout main
git fetch upstream
git merge upstream/main

Intalling project requirements

This repository has the requirements.txt and the requirements-dev.txt files to help build your virtual environment.

We also recommend using Pipenv to manage your virtual environment.

$ pip install pipenv
$ pipenv shell

Install development requirements

$ pipenv install -d

Running API development

Runing the API locally

$ make run-dev

Open http://localhost:8000/ in your browser.

Changes in the code will automatically update the service.

See Makefile for more options

Tests

We use Tox to manage running the tests.

Running tests

$ tox

Managing requirements

Installing new requirements

Project requirements

$ pipenv install {package}

Development requirements

$ pipenv install -d {package}

Updating requirements files from Pipenv

$ make requirements

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK