Product Design is the service responsible for exploring different design patterns generated by GANs.
git clone https://github.com/priyanshu-sharma/product-design.git
cd product-design/
bash setup.sh
Open a new Terminal and configure Postgres Database with: -
sudo -u postgres psql
This will open postgres prompt. Enter the following commands to configure the database user. and '\q' to quit the postgres prompt.
create user pd_admin with encrypted password 'password';
grant all privileges on database product_design to pd_admin;
Open a new Terminal and start Redis Server with: -
redis-server
Open a new Terminal and start Redis CLI with: -
redis-cli
Open a new Terminal and start RabbitMQ Server with: -
rabbitmq-server
Open a new Terminal and install Model Engine dependencies with: -
cd product-design/
bash src/model_engine/entrypoint.sh
And start Model Engine Server with: -
cd src/model_engine/
uvicorn server:app --host 0.0.0.0 --port 4000 --reload
Open a new Terminal and start Model Engine Celery with: -
cd src/model_engine/
celery -A async_celery.app worker -c 1 -l info
Open a new Terminal and install Product Server dependencies with: -
cd product-design/
bash src/product_design_server/entrypoint.sh
And start Product Server with: -
cd src/product_design_server/
python manage.py runserver
Open a new Terminal and start Product Server Celery with: -
cd src/product_design_server/
celery -A server_config.celery.app worker -c 1 -l info
Open a new Terminal and install UI dependencies using: -
cd product-design/
bash src/product_design_ui/entrypoint.sh
And start the UI Server with: -
cd src/product_design_ui/product_design_ui/
npm start