Kitenge is an online market, where everything African (such as african jewellery, shoes dresses, toys, cutlery, furniture e.t.c) can be bought and sold across borders.
- Bill Odida
- Anthony Ng,ang’a
- Tom Orenge
- Maku Mazakpe - TEAM LEADER
East Africa does not have a single market for its arts and crafts, so most people don’t know what’s new and trending in the crafts industry and most crafts sellers have little market share to showcase their items.
Build a solution where people can put their art out there to reach a larger market in East Africa.
- java 11
- spark core 2.12
- Gradle 4.10
- Spark Template Velocity
- Junit 4
- Postgres
- psql
- sql2o
- postgresql
- Clone this repo
- Compile "gradle compileJava"
- Run cd to cd build/classes/main
java App
- Run psql in terminal
- CREATE DATABASE kitenge;
- CREATE TABLE users (id serial PRIMARY KEY, name VARCHAR, role VARCHAR);
- CREATE DATABASE kitenge_test WITH TEMPLATE kitenge;
- CREATE TABLE product (id serial PRIMARY KEY, name varchar, price int, imageUrl varchar);
- DROP DATABASE kitenge_test;
- CREATE DATABASE kitenge_test WITH TEMPLATE kitenge;
- ALTER TABLE product ADD COLUMN userId int;
- CREATE TABLE kiosk (id serial PRIMARY KEY, name VARCHAR);
- ALTER TABLE kiosk ADD COLUMN userId int;
- ALTER TABLE product DROP COLUMN imageurl;
- / (index)
- /allProducts (get all products)
- /addProductCart (Add product to cart)
- /productDetails (get the selected product details)
- /upVote (upvote a product)
- /downVote (downvote a product)
- /addProduct (add product to db)
- /createKiosk (create a kiosk for product)
- /updateUser
- /updateVendor
- /updateKiosk
- /updateProduct
- /deleteVendor
- /deleteUser
- /deleteProduct
- User logs in to view all the products.
- User adds product to cart to purchase products.
- User expands product to view details
- User upvote and downvote products
- Vendor can view all products
- Vendor creates a kiosk to put in products
- Vendor adds products to the kiosk
- Vendor updates the product details
- Vendor deletes products
- Admin views all users
- Admin views all vendors
- Admin creates users
- Admin creates vendors
- Admin creates kiosks
- Admin updates user info
- Admin updates vendor info
- Admin deletes users
- Admin deletes vendors
gradle test