Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 969 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 969 Bytes

user-interaction-service

Clone the following repo on your local

git clone https://github.com/itsanand/user-service.git
git clone https://github.com/itsanand/user-interaction-service.git
git clone https://github.com/itsanand/content-service.git

From user-service folder run the below command

docker-compose build
docker-compose up

or

docker-compose up --build

Swagger Docs can be accessed for each service from below urls

http://localhost:7000/user-interaction-service/docs
http://localhost:8000/user-service/docs
http://localhost:9000/content-service/docs

User-Interaction-service Database

class Interaction:
    """User Interaction model"""

    __tablename__ = "Interaction"
    userID: Column = Column(String)
    contentTitle: Column = Column(String)
    operationType: Column = Column(Enum(OperationType))

    __table_args__ = (PrimaryKeyConstraint("userID", "contentTitle", "operationType"),)