Store-Warehouse - a Django (Django Rest Framework) application that can work in two modes: store or warehouse. In "Store" mode, it is able to create a new order and synchronize it with the connected warehouse. On the other hand, in "Warehouse" mode, you can change the order status and synchronize the updated status with the connected store. The synchronization of databases is done using REST API.
To download and install this project use the following commands:
git clone [email protected]:danokp/store-warehouse.git
cd task-manager
- Make sure that Docker and Docker-compose are installed.
docker -v
docker compose version
.env.store
and.env.warehouse
files have been already created for faster demonstration.- Run the applications using
docker compose
:
docker compose up
- Open the applications in web browser:
- Store at http://localhost:8001/admin;
- Warehouse1 at http://localhost:8002/admin.
- Warehouse2 at http://localhost:8003/admin.
- Superuser has been automatically created. In order to start using login as an admin (
username
: admin,password
: admin). - In
Synch Connection
add token of the client you want to be synchronized with. - You are ready to create orders in Store and update their statuses in warehouse.