Git Product home page Git Product logo

pcs-config-dotnet's Introduction

Build Issues Gitter

Config service Overview

This service handles communication with the Storage Adapter microservice to complete tasks.

The microservice provides a RESTful endpoint to make CRUD operations for "devicegroups", "solution-settings", and "user-settings". The data will be stored by the Storage Adapter microservice.

Dependencies

  • [Storage adapter microservice] used to store data

How to use the microservice

Local Setup

1. Environment Variables

Run scripts\env-vars-setup.cmd on Windows or source scripts/env-vars-setup on Mac/Linux to set up the environment variables needed to run the service locally. If using environment variables, this service requires the following environment variables to be set:

Quickstart - Running the service with Docker

You can quickly start the Config service and its dependencies in one simple step, using Docker Compose with the docker-compose.yml file in the project:

cd scripts/docker
docker-compose up

The Docker compose configuration requires the PCS_STORAGEADAPTER_WEBSERVICE_URL environment variable.

Build and Run from the command line

The scripts folder contains scripts for many frequent tasks:

  • compile: compile the projects.
  • build: compile the projects and run the tests.
  • run: compile the projects and run the service. This will prompt for elevated privileges in Windows to run the web service.

The scripts check for the environment variables setup. You can set the environment variables globally in your OS, or use the "env-vars-setup" script in the scripts folder.

Updating the Docker image

The scripts folder includes a docker subfolder with the files required to package the service into a Docker image:

  • build: build a Docker container and store the image in the local registry
  • run: run the Docker container from the image stored in the local registry

Contributing to the solution

Please follow our contribution guildelines and code style conventions.

Feedback

Please enter issues, bugs, or suggestions as GitHub Issues here: https://github.com/Azure/pcs-config-dotnet/issues.

pcs-config-dotnet's People

Contributors

dluc avatar jillcary avatar mechaffin avatar microsoftopensource avatar msftgits avatar ppathan avatar v-limliu avatar xzsheng avatar zhang-hua avatar

Watchers

 avatar  avatar

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.