1
Watch
1
Star
0
Fork
0
Issue

E-commerce web platform for sustainable production and consumption aiming goal number 12 of United Nations

Toushif
Toushif
pushedAt 1 week ago

Toushif/greenytale

GREENYTALE Dive into the web application - https://greenitale.herokuapp.com/

GreenyTale is an e-commerce web platform which addresses the problem of goal number 12 of UN and provides solution to sustainable consumption and production patterns in muliple ways. GreenyTale attempts not only to create a circular economy around the world but also make a strong ethical and ecological impression on the users to aim self sustainance.

Goals of our product: A consumer can make a more informed decision on choosing their raw materials/product parts/products based on a score we’ll provide through an algorithm leveraging Watson AI on parameters like recyclability, reusability, cost, manufacturing impact on environment, carbon footprint, end to end lifetime of a product, disposability, etc.

We will provide an interface and channel for our seller who will be selling materials/products based on a number of parameters meeting our environment friendly guidelines of recycling, reusability, minimum carbon footprint, etc. Every seller will host/sell only environment friendly materials/products by sharing information and filling out one-time minimum form pertaining to the production process of the product which will be later approved by our team to be hosted in the platform if it meets all the sustainable consumption and production patterns.

Consumer can compare the information available for a material/product from different sources to make the best possible decision based on price, quality, carbon footprint, etc. Beside comparison, we will also be leveraging Watson AI with other data sources and list out analytical useful data on every product like manufacturing cost, raw materials used, the impact of the product on the environment, how to reduce the impact, alternative solutions, how to reuse, how to connect to other organizations, companies for recycling, product lifecycle, etc

The platform will provide information on best practices of using recyclable materials as raw materials to reduce the carbon footprint of final product and how efficiently a product can be reused.

GreenyTale API Documentation

The APIs are deployed in heroku.

API List

Create a new Users document(Admin API - One time)

{
  "user_name": "soham.chattopadhyay",
  "password": "test123",
  "email": "[email protected]",
  "full_name": "Soham Chattopadhyay",
  "dob": "01/01/1905",
  "gender": "M",
  "secure_login_recovery": [
      {
          "security_question_ID": "1",
          "secure_answer": "Kolkata"
      }
  ],
  "street_address_1": "Selimpur Road, Dhakuria",
  "street_address_2": "",
  "city": "Kolkata",
  "state": "WB",
  "zip": "700031",
  "country": "India",
  "role": [
      "Role_Consumer"
  ],
  "sold_product_ID": [],
  "isAdmin": true
}

Login API

{
    "userName": "nitish.kumar",
    "password": "asd132edfa"
}

Profile API

{
    "user_name": "",
    "user_ID": "4c3da380-f114-11eb-83d7-9381734a8ac8"
}

Sign-Up API

{
    "user_name": "nitish.kumar",
    "password": "asd132edfa",
    "email": "[email protected]",
    "full_name": "Nitish Kumar",
    "dob": "01/02/1911",
    "gender": "M",
    "secure_login_recovery": [
        {
            "security_question_ID": "1",
            "secure_answer": "Patna"
        }
    ],
    "street_address_1": "ADAX Street",
    "street_address_2": "GSdf",
    "city": "Patna",
    "state": "BH",
    "zip": "144123",
    "country": "India",
    "sold_product_ID": [],
    "isAdmin": false
}

Update Existing User

{
    "user_ID": "7dcd3d40-eea1-11eb-b87c-119e6b87510a",
    "RoleID" : 2
}

Delete Existing User

{
    "user_ID": "4c3da380-f114-11eb-83d7-9381734a8ac8"
}

Create a new Products document(Admin API - One time)

product_name: Clear Glass,
unit_price: 12,
quantity: 200,
product_material: Glass,
recycling_code: #70 GL,
seller_ID: 0bb9b470-eafc-11eb-bffb-adf8fe07f4e0,
seller_name: Swadhin Mukherjee,
product_category: Materials,
product_sub_category: Fragile Materials
file: Upload image file with this property

Create New Product

product_name: Clear Glass,
unit_price: 12,
quantity: 200,
product_material: Glass,
recycling_code: #70 GL,
seller_ID: 0bb9b470-eafc-11eb-bffb-adf8fe07f4e0,
seller_name: Swadhin Mukherjee,
product_category: Materials,
product_sub_category: Fragile Materials
file: Upload image file with this property

Update Existing Product (Admin can use this to approve a product)

{
    "product_ID": "15cc8980-eea6-11eb-ab1f-89c796c5f7c3",
    "isApproved": true
}

Get All Products

  No request requried

Get Product Info

{
    "product_ID": "b16e9e40-eba5-11eb-b05c-97cfad7c58a9"
}

Search Product

{
  "product_name": "",
  "product_category": "",
  "product_sub_category": "Fragile"
}

Get Seller Listings

{
    "seller_ID": "0bb9b470-eafc-11eb-bffb-adf8fe07f4e0"
}

Create a new Cart document(Admin API - One time)

{
    "user_ID": "f0e76700-eafb-11eb-bffb-adf8fe07f4e0",
    "products": [
        {
            "product_ID": "b16e9e40-eba5-11eb-b05c-97cfad7c58a9",
            "quantity": "2"
        },
        {
            "product_ID": "c6f570b0-ec43-11eb-b6c2-eba4be0f94a7",
            "quantity": "4"
        }
    ]
}

Create a new Cart for user

{
    "user_ID": "fb1106a0-eafb-11eb-bffb-adf8fe07f4e0",
    "products": [
        {
            "product_ID": "b16e9e40-eba5-11eb-b05c-97cfad7c58a9",
            "quantity": "1"
        },
        {
            "product_ID": "c6f570b0-ec43-11eb-b6c2-eba4be0f94a7",
            "quantity": "3"
        }
    ]
}

Get Cart

{
    "user_ID": "f0e76700-eafb-11eb-bffb-adf8fe07f4e0"
}

Update cart of existing user (includes deletion of product from cart)

{
    "user_ID": "f0e76700-eafb-11eb-bffb-adf8fe07f4e0",
    "products": [
        {
            "product_ID": "c6f570b0-ec43-11eb-b6c2-eba4be0f94a7",
            "quantity": "3"
        }
    ]
}

Delete user's cart

{
    "user_ID": "fb1106a0-eafb-11eb-bffb-adf8fe07f4e0"
}

Create a new Orders document(Admin API - One time)

{
    "user_ID": "f0e76700-eafb-11eb-bffb-adf8fe07f4e0",
    "products": [
        {
            "product_ID": "b16e9e40-eba5-11eb-b05c-97cfad7c58a9",
            "quantity": "2"
        },
        {
            "product_ID": "c6f570b0-ec43-11eb-b6c2-eba4be0f94a7",
            "quantity": "4"
        }
    ]
}

Place a new order

{
    "user_ID": "d590ce60-eafb-11eb-9b89-0f5ac3556630",
    "products": [
        {
          "product_ID": "b16e9e40-eba5-11eb-b05c-97cfad7c58a9",
          "quantity": "2"
        },
        {
          "product_ID": "c6f570b0-ec43-11eb-b6c2-eba4be0f94a7",
          "quantity": "4"
        }
      ]
}

Get orders for an user

{
    "user_ID": "d590ce60-eafb-11eb-9b89-0f5ac3556630"
}
ucloud ads