FINAL PROJECT PBKK
- Dapatkan link
- X
- Aplikasi Lainnya
Anggota:
05111840000057 - Maisie Chiara Salsabila
05111840000120 - Aflakah Nur Farhana
05111840000130 - I Gusti Agung Chintya Prema Dewi
-
Get link
-
Facebook
-
Twitter
-
Pinterest
-
Email
-
Other Apps
Pada tugas 8 ini, kami kan membentuk toko elektronik menggunakan CodeIgniter3. Web yang akan dibangun ini memiliki dua role, yaitu pembeli dan admin.
Berikut merupakan pembagian fitur kedua role tersebut.
Admin:
- Login
- Mengelola kategori barang (CRUD)
- Mengelola data brand (CRUD)
- Mengelola produk (CRUD)
- Mengelola orderan (CRUD)
- Logout
Pembeli:
- Registrasi
- Login
- Melihat produk
- Mencari produk
- Membeli Produk
- Melihat daftar belanja
- Membeli produk
- Logout
Pengaturan MVC
Controller
Controller
Untuk pengaturan file 'config.php' pengaturan utama yang diubah adalah ['base_url'] dan ['index_page']
- $config['base_url'] = (isset($_SERVER['HTTPS']) ? "https://" : "http://") . $_SERVER['HTTP_HOST'] . preg_replace('@/+$@', '', dirname($_SERVER['SCRIPT_NAME'])) . '/';
Untuk pengaturan file 'autoload.php'
- $autoload['libraries'] = array('database', 'session', 'form_validation', 'upload', 'cart');
- $autoload['helper'] = array('form', 'url', 'file', 'option', 'text');
Untuk pengaturan file 'routes.php'
- //Front End Route
- $route['default_controller'] = 'web';
- $route['404_override'] = 'web/error';
- $route['translate_uri_dashes'] = false;
-
- //Web Route
-
- $route['product'] = 'web/product';
- $route['single/(:num)'] = 'web/single/$1';
- $route['contact'] = 'web/contact';
- $route['cart'] = 'web/cart';
- $route['save/cart'] = 'web/save_cart';
- $route['update/cart'] = 'web/update_cart';
- $route['remove/cart'] = 'web/remove_cart';
- $route['user_form'] = 'web/user_form';
- $route['get/category/(:num)'] = 'web/category_post/$1';
-
- $route['search'] = 'web/search';
- $route['customer/register'] = 'web/customer_register';
- $route['customer/login'] = 'web/customer_login';
- $route['customer/logout'] = 'web/logout';
- $route['customer/logincheck'] = 'web/customer_logincheck';
- $route['customer/save'] = 'web/customer_save';
- $route['register/success'] = 'web/register_success';
-
- $route['customer/shipping/login'] = 'web/customer_shipping_login';
- $route['customer/shipping/register'] = 'web/customer_shipping_register';
-
- $route['customer/shipping'] = 'web/customer_shipping';
- $route['customer/save/shipping/address'] = 'web/save_shipping_address';
- $route['checkout'] = 'web/checkout';
- $route['payment'] = 'web/payment';
- $route['save/order'] = 'web/save_order';
- $route['check_email'] = 'web/check_email';
-
- //Admin Panel Route
- $route['dashboard'] = 'admin/index';
- $route['manage/order'] = 'manageorder/manage_order';
- $route['order/details/(:num)'] = 'manageorder/order_details/$1';
-
- //Category Route List
- $route['add/category'] = 'category/add_category';
- $route['manage/category'] = 'category/manage_category';
- $route['save/category'] = 'category/save_category';
- $route['delete/category/(:num)'] = 'category/delete_category/$1';
- $route['edit/category/(:num)'] = 'category/edit_category/$1';
- $route['update/category/(:num)'] = 'category/update_category/$1';
- $route['published/category/(:num)'] = 'category/published_category/$1';
- $route['unpublished/category/(:num)'] = 'category/unpublished_category/$1';
-
- //Brand Route List
- $route['add/brand'] = 'brand/add_brand';
- $route['manage/brand'] = 'brand/manage_brand';
- $route['save/brand'] = 'brand/save_brand';
- $route['delete/brand/(:num)'] = 'brand/delete_brand/$1';
- $route['edit/brand/(:num)'] = 'brand/edit_brand/$1';
- $route['update/brand/(:num)'] = 'brand/update_brand/$1';
- $route['published/brand/(:num)'] = 'brand/published_brand/$1';
- $route['unpublished/brand/(:num)'] = 'brand/unpublished_brand/$1';
-
- //Post Route List
- $route['add/product'] = 'product/add_product';
- $route['manage/product'] = 'product/manage_product';
- $route['save/product'] = 'product/save_product';
- $route['delete/product/(:num)'] = 'product/delete_product/$1';
- $route['edit/product/(:num)'] = 'product/edit_product/$1';
- $route['update/product/(:num)'] = 'product/update_product/$1';
- $route['published/product/(:num)'] = 'product/published_product/$1';
- $route['unpublished/product/(:num)'] = 'product/unpublished_product/$1';
-
- //Admin login
- $route['admin'] = 'adminlogin';
- $route['admin_login_check'] = 'adminlogin/admin_login_check';
- $route['logout'] = 'admin/logout';
-
- //Slider Route List
- $route['add/slider'] = 'slider/add_slider';
- $route['manage/slider'] = 'slider/manage_slider';
- $route['save/slider'] = 'slider/save_slider';
- $route['delete/slider/(:num)'] = 'slider/delete_slider/$1';
- $route['edit/slider/(:num)'] = 'slider/edit_slider/$1';
- $route['update/slider/(:num)'] = 'slider/update_slider/$1';
- $route['published/slider/(:num)'] = 'slider/published_slider/$1';
- $route['unpublished/slider/(:num)'] = 'slider/unpublished_slider/$1';
-
- //Theme Option Route List
- $route['theme/option'] = 'themeoption';
- $route['save/option'] = 'themeoption/save_option';
-
Untuk pengaturan file 'database.php'
- $db['default'] = array(
- 'dsn' => '',
- 'hostname' => 'localhost',
- 'username' => 'root',
- 'password' => '',
- 'database' => 'ecommerce',
- 'dbdriver' => 'mysqli',
- 'dbprefix' => '',
- 'pconnect' => FALSE,
- 'db_debug' => (ENVIRONMENT !== 'production'),
- 'cache_on' => FALSE,
- 'cachedir' => '',
- 'char_set' => 'utf8',
- 'dbcollat' => 'utf8_general_ci',
- 'swap_pre' => '',
- 'encrypt' => FALSE,
- 'compress' => FALSE,
- 'stricton' => FALSE,
- 'failover' => array(),
- 'save_queries' => TRUE
Model
Untuk pengaturan database, toko kami memiliki 12 tabel yaitu
- tbl_brand
- tbl_category
- tbl_customer
- tbl_option
- tbl_order
- tbl_order_details
- tbl_payment
- tbl_product
- tbl_shipping
- tbl_slider
- tbl_user
- user_role
(source code lengkap tersedia di repositori github)
View
Tampilan beranda pembeli
Tampilan Registrasi
Tampilan login
Tampilan detail produkTampilan keranjang pembeli
Tampilan Beranda Admin
Tampilan Menambah kategori barang
Tampilan pengelolaan kategori
Tampilan pengelolaan brand produk
Tampilan pengelolaan orderan customer
Source code lengkap :
05111840000057 - Maisie Chiara Salsabila
05111840000120 - Aflakah Nur Farhana
05111840000130 - I Gusti Agung Chintya Prema Dewi
- Get link
- Other Apps
Pada tugas 8 ini, kami kan membentuk toko elektronik menggunakan CodeIgniter3. Web yang akan dibangun ini memiliki dua role, yaitu pembeli dan admin.
Berikut merupakan pembagian fitur kedua role tersebut.
Admin:
- Login
- Mengelola kategori barang (CRUD)
- Mengelola data brand (CRUD)
- Mengelola produk (CRUD)
- Mengelola orderan (CRUD)
- Logout
Pembeli:
- Registrasi
- Login
- Melihat produk
- Mencari produk
- Membeli Produk
- Melihat daftar belanja
- Membeli produk
- Logout
Pengaturan MVC Controller
Controller
Untuk pengaturan file 'config.php' pengaturan utama yang diubah adalah ['base_url'] dan ['index_page']
- $config['base_url'] = (isset($_SERVER['HTTPS']) ? "https://" : "http://") . $_SERVER['HTTP_HOST'] . preg_replace('@/+$@', '', dirname($_SERVER['SCRIPT_NAME'])) . '/';
- $autoload['libraries'] = array('database', 'session', 'form_validation', 'upload', 'cart');
- $autoload['helper'] = array('form', 'url', 'file', 'option', 'text');
- //Front End Route
- $route['default_controller'] = 'web';
- $route['404_override'] = 'web/error';
- $route['translate_uri_dashes'] = false;
- //Web Route
- $route['product'] = 'web/product';
- $route['single/(:num)'] = 'web/single/$1';
- $route['contact'] = 'web/contact';
- $route['cart'] = 'web/cart';
- $route['save/cart'] = 'web/save_cart';
- $route['update/cart'] = 'web/update_cart';
- $route['remove/cart'] = 'web/remove_cart';
- $route['user_form'] = 'web/user_form';
- $route['get/category/(:num)'] = 'web/category_post/$1';
- $route['search'] = 'web/search';
- $route['customer/register'] = 'web/customer_register';
- $route['customer/login'] = 'web/customer_login';
- $route['customer/logout'] = 'web/logout';
- $route['customer/logincheck'] = 'web/customer_logincheck';
- $route['customer/save'] = 'web/customer_save';
- $route['register/success'] = 'web/register_success';
- $route['customer/shipping/login'] = 'web/customer_shipping_login';
- $route['customer/shipping/register'] = 'web/customer_shipping_register';
- $route['customer/shipping'] = 'web/customer_shipping';
- $route['customer/save/shipping/address'] = 'web/save_shipping_address';
- $route['checkout'] = 'web/checkout';
- $route['payment'] = 'web/payment';
- $route['save/order'] = 'web/save_order';
- $route['check_email'] = 'web/check_email';
- //Admin Panel Route
- $route['dashboard'] = 'admin/index';
- $route['manage/order'] = 'manageorder/manage_order';
- $route['order/details/(:num)'] = 'manageorder/order_details/$1';
- //Category Route List
- $route['add/category'] = 'category/add_category';
- $route['manage/category'] = 'category/manage_category';
- $route['save/category'] = 'category/save_category';
- $route['delete/category/(:num)'] = 'category/delete_category/$1';
- $route['edit/category/(:num)'] = 'category/edit_category/$1';
- $route['update/category/(:num)'] = 'category/update_category/$1';
- $route['published/category/(:num)'] = 'category/published_category/$1';
- $route['unpublished/category/(:num)'] = 'category/unpublished_category/$1';
- //Brand Route List
- $route['add/brand'] = 'brand/add_brand';
- $route['manage/brand'] = 'brand/manage_brand';
- $route['save/brand'] = 'brand/save_brand';
- $route['delete/brand/(:num)'] = 'brand/delete_brand/$1';
- $route['edit/brand/(:num)'] = 'brand/edit_brand/$1';
- $route['update/brand/(:num)'] = 'brand/update_brand/$1';
- $route['published/brand/(:num)'] = 'brand/published_brand/$1';
- $route['unpublished/brand/(:num)'] = 'brand/unpublished_brand/$1';
- //Post Route List
- $route['add/product'] = 'product/add_product';
- $route['manage/product'] = 'product/manage_product';
- $route['save/product'] = 'product/save_product';
- $route['delete/product/(:num)'] = 'product/delete_product/$1';
- $route['edit/product/(:num)'] = 'product/edit_product/$1';
- $route['update/product/(:num)'] = 'product/update_product/$1';
- $route['published/product/(:num)'] = 'product/published_product/$1';
- $route['unpublished/product/(:num)'] = 'product/unpublished_product/$1';
- //Admin login
- $route['admin'] = 'adminlogin';
- $route['admin_login_check'] = 'adminlogin/admin_login_check';
- $route['logout'] = 'admin/logout';
- //Slider Route List
- $route['add/slider'] = 'slider/add_slider';
- $route['manage/slider'] = 'slider/manage_slider';
- $route['save/slider'] = 'slider/save_slider';
- $route['delete/slider/(:num)'] = 'slider/delete_slider/$1';
- $route['edit/slider/(:num)'] = 'slider/edit_slider/$1';
- $route['update/slider/(:num)'] = 'slider/update_slider/$1';
- $route['published/slider/(:num)'] = 'slider/published_slider/$1';
- $route['unpublished/slider/(:num)'] = 'slider/unpublished_slider/$1';
- //Theme Option Route List
- $route['theme/option'] = 'themeoption';
- $route['save/option'] = 'themeoption/save_option';
- $db['default'] = array(
- 'dsn' => '',
- 'hostname' => 'localhost',
- 'username' => 'root',
- 'password' => '',
- 'database' => 'ecommerce',
- 'dbdriver' => 'mysqli',
- 'dbprefix' => '',
- 'pconnect' => FALSE,
- 'db_debug' => (ENVIRONMENT !== 'production'),
- 'cache_on' => FALSE,
- 'cachedir' => '',
- 'char_set' => 'utf8',
- 'dbcollat' => 'utf8_general_ci',
- 'swap_pre' => '',
- 'encrypt' => FALSE,
- 'compress' => FALSE,
- 'stricton' => FALSE,
- 'failover' => array(),
- 'save_queries' => TRUE
Model
Untuk pengaturan database, toko kami memiliki 12 tabel yaitu
- tbl_brand
- tbl_category
- tbl_customer
- tbl_option
- tbl_order
- tbl_order_details
- tbl_payment
- tbl_product
- tbl_shipping
- tbl_slider
- tbl_user
- user_role
(source code lengkap tersedia di repositori github)
View
Tampilan beranda pembeli
Tampilan Registrasi
Tampilan login
Tampilan detail produk
Tampilan keranjang pembeli
Tampilan Beranda Admin
Tampilan Menambah kategori barang
Tampilan pengelolaan kategori
Tampilan pengelolaan brand produk
Tampilan pengelolaan orderan customer
Source code lengkap :
- Dapatkan link
- X
- Aplikasi Lainnya
Postingan populer dari blog ini
Fit for the Future: A Sharing of Experience
Oleh: Ahmadsyah Alghozi Nugroho (International Oil Company, Netherlands) Ahmadsyah Alghozi Nugroho merupakan seorang Data Consultant di perusahaan minyak dan gas multinasional, Shell. Riwayat pendidikan beliau adalah pendidikan Sarjana Teknik Informatika Institut Teknologi Sepuluh Nopember (ITS) dan Magister di Manajemen Keuangan Universitas Indonesia (UI). Beberapa poin-poin penting yang perlu diperhatikan dalam mencapai goal dalam hidup, menurut beliau. 1. Interest I ni merupakan langkah awal. Ketahui apa hal yang menarik bagi diri kita. A papun yang kalian mau lakukan saja dan kembangkan dengan sungguh-sungguh. 2. Man Jadda Wa Jadda Where is a will There is a way If no way could be found L ook at how strong the will Itu merupakan kalimat yang didapat dari orang tua beliau. S ebuah motivasi untuk terus berusaha mencapai apa yang kita inginkan, disertai doa agar keinginan kita benar-benar dikabulkan Tuhan. J ika suatu saat kit...
Perbedaan Pemrograman Terstruktur dan Pemrograman Berbasis Objek
Pemrograman berorientasi objek merupakan paradigma pemrograman yang berorientasikan kepada objek. Semua data dan fungsi di dalam paradigma ini dibungkus dalam kelas-kelas atau objek-objek. Pemrograman Terstruktur adalah suatu aktifitas pemrograman dengan memperhatikan urutan langkah-langkah perintah secara sistematis, logis , dan tersusun berdasarkan algoritma yang sederhana dan mudah dipahami sehingga dapat mengimplementasikan proses urutan langkah untuk menyelesaikan suatu masalah dalam bentuk program. Dari pengertian pemrograman terstruktur dan pemrograman berorientasi objek itu sendiri kita dapat menyimpulkan bahwa Pemrograman berorientasi objek memiliki proses pada setiap objek untuk dapat menerima pesan, memproses data, dan mengirim pesan ke objek lainnya, Sedangkan untuk pemrograman terstruktur adalah sebuah cara pemrosesan data yang terstruktur dalam analisa, cara dan penulisan pemrograman. Dikarenakan harus terstruktur sehingga dalam pembuatannya antara satu line pemro...
TUGAS 4 : Membuat Aplikasi MVVM dengan WPF menggunakan .NET
1. Membuat project baru 2. Membuat class itempenjualan sebagai model 3. Ubah file MainWindow.xaml sebagai interface aplikasi 4. Membuat ItemPenjualanViewModel sebagai view model 5. Ubah class MainWindow.xaml.cs untuk menghubungkan model dengan view 6. Mengubah kode program pada MainWindow.xaml untuk melakukan binding dan menambahkan validation 7. D ownload MySQL Connector/.NET versi 6. Disini saya menggunakan versi 6.8.7 8. Tambahkan reference MySql.Data.Entity.EF6 9. Tambahkan Nuget Package Entity Framework 6 10. U bah kode program pada App.config 11. U bah kode program pada ItemPenjualan.cs 12. Membuat class LatihanContext 13. Membuat class MyHistoryContext 14. Mengubah kode program dari class ItemPenjualanViewModel untuk menambah class SimpanCommand dan propertynya pada ViewModel 15. Mengubah kode program pada MainWindow.xaml untuk melakukan binding pada button simpan ...
Komentar
Posting Komentar