|
|
## How to add new auction? |
|
|
\ No newline at end of file |
|
|
# How to add new auction?
|
|
|
|
|
|
Here you can find step-by-step implementation of auction.
|
|
|
|
|
|
1. Add your auction package to the [package folder](https://gitlab.prozorro.sale/prozorro-sale/auction/-/tree/master/src/prozorro_sale/auction/packages)
|
|
|
|
|
|
package must be next structure:
|
|
|
```
|
|
|
{{auction_Type}}
|
|
|
|--__init__.py
|
|
|
|--auction.py
|
|
|
|--states.py
|
|
|
```
|
|
|
|
|
|
2. Implement Auction class in the `auction.py`. Class must be inherited from base Auction class
|
|
|
|
|
|
3. Implement Auction States Classes in the `states.py`. States must be inhereted from `state_machine.base_states.State` or `state_machine.base_states.TimeState`
|
|
|
|
|
|
4. Add [specification](Auction-Specs) of your auction to the deployment repository.
|
|
|
|
|
|
**TIPS**
|
|
|
|
|
|
to run locally, you must add spec to the /specs_auction folder |
|
|
\ No newline at end of file |