Skip to content

agaraman0/ecom

Repository files navigation

ecom

Steps To Run

$ git clone git@github.com:agaraman0/ecom.git

$ cd ecom

Before running this make sure you do not have any existing migration in Repo named migrations/

$ docker-compose up -d --build

$ docker ps # you should be able to see 2 docker images running one as application server and another as db server

Our Application is successfully up and running to test it run localhost:5000 in Browser

$ docker exec -it <application_server_contianer_name> bash

root@ba6d63/usr/src/app# python manage.py db init

root@ba6d63/usr/src/app# python manage.py db migrate

root@ba6d63/usr/src/app# python manage.py db upgrade

curl -X POST
-H "Content-Type: application/json"
-d '{ "name": "cat", "subcategories": [36,37] }'
http://localhost:5000/category/v1/

Releases

No releases published

Packages

No packages published