Code Monkey home page Code Monkey logo

profile-service's Introduction

Profile Service API

Profile Service API is resposible to manage customer profile.

Live Demo

https://my-profile-service.azurewebsites.net/.

Usage

POST /api/profile

example value:

{
  "customerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "ssn": "string",
  "countryCode": "string",
  "phoneNumber": "string",
  "email": "string"
}
PUT /api/profile

example value:

{
  "customerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "ssn": "string",
  "countryCode": "string",
  "phoneNumber": "string",
  "email": "string",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
DELETE /api/profile

example value:

{
  "customerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}

And

GET /api/profile/{customerId}

Available Scripts

It is used to install all dependencies for a project.
It is necessary to run before staring the app.

dotnet restore

In the API project directory, you can run:

dotnet run

Runs the app in the development mode.
Open https://localhost:4001 to view it in the browser.

How to run the test?

dotnet test

How to publish?

dotnet publish -c Release -r win-x64 -o ./output --self-contained

Containerize the app

How to build a Docker image that contains the .NET Core application with running the tests.

docker image build -t sambose/profile-service .

and run it by:

docker run -d -p 8080:80 --name my-api sambose/profile-service

Architecture and Libraries

dotnet core 3.0, Clean architecture, CQRS, entity framework core 3.1, FluentValidation, Swagger, xUnit, docker

profile-service's People

Contributors

majicl avatar

Watchers

James Cloos 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.