Skip to content

pjvv/announcement-service

Repository files navigation

Announcement Service

High Level Diagram

A high level diagram of a potential solution.

announcement service

Requirements

AWS

An AWS account is required with access to a SQS queue as well as a DynamoDB table.

Once created, the following settings can be configured in the environment or in a .env file:

AWS_REGION
SQS_QUEUE_URL
DYNAMODB_TABLE_NAME
EMPLOYEES_SERVICE_BASE_URL

Dependencies

The dependencies of the project are managed with poetry, this should be installed first.

Install the required dependencies using: poetry install --no-root (this will create a virtual environment for the project)

Environment

The app directory should be added to your PYTHONPATH environmental var, this can be achieved by simply setting it in your environment. Point your IDE to .dev.env to make use of the already defined env var file.

Running

To run, make sure you have a shell in the activated virtual environment (poetry shell), then use the following command: PYTHONPATH=app uvicorn main:app --reload

Testing

To run the test suite, make sure you have a shell in the activated virtual environment (poetry shell), then use the following command: python -m pytest -svvvx

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages