Skip to content

ilyapaliy/uuid_generator_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is a test task for compeny othercode.

Solution is API built with framework FastAPI.

Required:

python 3.11 direct link

Project can be deployed in two ways:

  1. In docker
  2. For development

In both cases first should be done some preparations:

Virtual env

Create virtual env

python -m venv env

Activate virtual enviroment and install required packets

./env/Scripts/Activate.ps1
pip install -r requirements.txt

(or use other activate script in the same folder)

Use this command to exit virtual environment

deactivate

RabbitMQ

Run

docker-compose up --build

in rabbitmq folder to start RabbitMQ service from docker.

  • login: rmuser
  • password: rmpassword

Starting development environment

  1. Enshure that you're using console with enabled virtual env
  2. Enshure that RabbitMQ is running
  3. Use "python src/main.py" command to start server

All done! Now you can use Postman or other program to check it out.

Testing

Run this comand with enabled virtual env

pytest -v tests/

Creating docker containers

docker-compose up

Docs

Api swagger docs located on address

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published