Code Monkey home page Code Monkey logo

cholecystitis's Introduction

Cholecystit

Это лабораторная работа №1 по предмету Разработка приложений в распределенной среде

Задание: Сделать CRUD сервис по предметной области медицина (Холецистит)
Описание моделей: https://docs.google.com/document/d/12OjY-Nu4fDHk5Q9yg30Ez50sopchGazuBVxQ23PmZq0/edit?usp=sharing

Краткая информация:
Данный проект можно запустить в докере, чтобы не скачивать postgres себе на компьютер.
В первом контейнере будет лежать сервис,
во втором будет лежать база данных postgres,
в третьем лежит клиент для просмотра базы данных pgAdmin.

Описание api:
Контроллер для модели Cholecystit. Более подробное описание лежит в Swagger

  1. [POST] /api/Cholecystitis - создание модели | Body - json
  2. [Get] /api/Cholecystitis/{id} - получение модели по id, где id это GUID
  3. [PUT] /api/Cholecystitis/{id} - обновление модели по id | Body - json
  4. [DELETE] /api/Cholecystitis/{id} - удаление модели по id

Инструкция по запуску через Docker:

  1. Скачиваем и устанавливаем себе Docker https://www.docker.com/products/docker-desktop/
  2. Клонируем git clone https://github.com/BraveHunter2001/Cholecystitis.git.
  3. В корне выполняем docker compose up.
  4. Чтобы проверить работоспособность:
    • Swagger по https://localhost:5001/swagger/index.html или http://localhost:5000/swagger/index.html.
    • Postman. В репозитории лежит Cholecystitis.postman_collection.json. Импортируете его себе в Postman.
    • Что-то другое, то url api = https://localhost:5001/api/ или https://localhost:5001/api/
  5. Подключение к БД:
    • pgAdmin. url http://localhost:5050/browser/ креды к базе через pgAdmin: Server=postgres;Port=5432;Database=cholecystitis;User ID=pguser;Password=pgadmin;
    • Через внешнее, то замените Server=postgres на localhost

cholecystitis's People

Contributors

bravehunter2001 avatar

Watchers

 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.