Overview

Online Grocery is a restaurant based script which is awesomely developed in Codeigniter and also a single page website. And the Online Grocery can be used in fine dining, cafe, bar, bistro, pizza, sushi, and any other person who needs to advance their administrations and offer their accomplishments on the web. Try this magnificent appealing Online Grocery and give a solid presentation to your restaurant on the web.

The Online Grocery has a Blog page with that you can keep your regular customers engaged with your website by blogging about your services, new food items, and many more thing. This will also let you increase your customers. There also an important section for your restaurant is testimonial, in this section, you can place your client's feedback, this will also attract visitors on your website which will automatically increase the growth of your restaurant.

Admin credentials

Admin Url - http://kamleshyadav.in/deliveryapp/dashboard
Username - admin@gmail.com
Password - 123456


Features

Here are the features list for this application -

    Vendor
  • Add/update grocery items on the basis of categories like skin care, hair care ,kitchen essentials
  • List of all add/updateitems
  • Profile detail add/update
  • New orders list and its details and delivery option
  • Delivered order list and details
  • Cancel order list and details
  • Refund order list and details
  • Admin
  • Login
  • All vendor/customerlist
  • Profile detailupdate
  • All customerorder list
  • All vendor item list
  • New vendor add/update
  • All customerprofile detail update
  • List of all additem category
  • List of all add item stock unit
  • update theme settings

Everything in one place no need to setup admin and web version separately.

  • Download the latest App source Code
  • Extracted zip file, you get following folder.
    • Main File
      • 01-Web-and-admin-code
      • 02-Android-app-code
      • 03-Database-sql-file

Installation

  • System Requirements
  • Android Studio Installation
  • Android Studio on Mac
  • Android Studio on Linux

System Requirements

System Requirement for Android Studio

Google provides Android Studio for the Windows, Mac OS X, and Linux platforms. You can download this software from the Android Studio homepage. (You'll also find the traditional SDKs, with Android Studio's command-line tools, available on the Download page.) Before downloading Android Studio, make sure your platform meets one of the following requirements:

Windows OS
  • Microsoft Windows 7/8/10 (32-bit or 64-bit)
  • 2 GB RAM minimum, 8 GB RAM recommended
  • 2 GB of available disk space minimum, 4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
  • 1280 x 800 minimum screen resolution
  • JDK 8

For accelerated emulator: 64-bit operating system and Intel processor with support for Intel VT-x, Intel EM64T (Intel 64), and Execute Disable (XD) Bit functionality.

Mac OS
  • Mac OS X 10.8.5 or higher, up to 10.11.4 (El Capitan)
  • 2 GB RAM minimum, 8 GB RAM recommended
  • 2 GB of available disk space minimum, 4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
  • 1280 x 800 minimum screen resolution
  • JDK 6
Linux OS
  • GNOME or KDE desktop: Tested on Ubuntu 12.04, Precise Pangolin (64-bit distribution capable of running 32-bit applications)
  • 64-bit distribution capable of running 32-bit applications
  • GNU C Library (glibc) 2.11 or later
  • 2 GB RAM minimum, 8 GB RAM recommended
  • 2 GB of available disk space minimum, 4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
  • 1280 x 800 minimum screen resolution
  • JDK 8

For accelerated emulator: Intel processor with support for Intel VT-x, Intel EM64T (Intel 64), and Execute Disable (XD) Bit functionality, or AMD processor with support for AMD Virtualization (AMD-V).

Android Studio on Windows

To install Android Studio on Windows, proceed as follows:

  • Launch the .exe file you downloaded.
  • Follow the setup wizard to install Android Studio and any necessary SDK tools.

I launched android-studio-bundle-143.2821654-windows.exe to start the installation process. The installer responded by presenting the Android Studio Setup dialog box shown in Figure 1.

Clicking Next took me to the following dialog box, which gives you the option to decline installing the Android SDK (included with the installer) and an Android Virtual Device (AVD).

Figure 2. Do you want to install the Android SDK and AVD?

I chose to keep the default settings. After clicking Next, you'll be taken to the license agreement dialog box. Accept the license to continue the installation.

Figure 3. Accept the license agreement to continue installation

The next dialog box invites you to change the installation locations for Android Studio and the Android SDK.

Figure 4. Set the Android Studio and Android SDK installation locations

Change the location or accept the default locations and click Next. The installer defaults to creating a shortcut for launching this program, or you can choose to decline. I recommend that you create the shortcut, then click the Install button to begin installation.

Figure 5. Create a new shortcut for Android Studio

The resulting dialog box shows the progress of installing Android Studio and the Android SDK. Clicking the Show Details button will let you view detailed information about the installation progress.The dialog box will inform you when installation has finished. When you click Next, you should see the following:

Figure 6. Leave the Start Android Studio check box checked to run this software

To complete your installation, leave the Start Android Studio box checked and click Finish.

Running Android Studio

Android Studio presents a splash screen when it starts running:

Figure 7. Android Studio's start screen

On your first run, you'll be asked to respond to several configuration-oriented dialog boxes. The first dialog box focuses on importing settings from any previously installed version of Android Studio.

Figure 8. Import settings

If you're like me, and don't have a previously installed version, you can just keep the default setting and click OK. Android Studio will respond with a slightly enhanced version of the splash screen, followed by the Android Studio Setup Wizard dialog box:

Figure 9. Validate your Android SDK and development environment setup

When you click Next, the setup wizard invites you to select an installation type for your SDK components. For now I recommend you keep the default standard setting.

Figure 10. Choose an installation type

Click Next and verify your settings, then click Finish to continue.

Figure 11. Review settings

The wizard will download and unzip various components. Click Show Details if you want to see more information about the archives being downloaded and their contents.

Figure 12. Review settings

If your computer isn't Intel based, you might get an unpleasant surprise after the components have completely downloaded and unzipped:

Figure 13. Intel-based hardware acceleration is unavailable

Your options are to either put up with the slow emulator or use an Android device to speed up development. I'll discuss the latter option later in the tutorial.Finally, click Finish to complete the wizard. You should see the Welcome to Android Studio dialog box:

Figure 14. Welcome to Android Studio

Android Studio on Mac

  • Launch the Android-studio-ide-162.4069837-mac.dmg file.
  • Drag and drop Android Studio into the Applications folder, then launch Android Studio.

    Figure 1.

  • Select whether you want to import previous Android Studio settings, then click OK.
  • The Android Studio Setup Wizard guides you though the rest of the setup, which includes downloading Android SDK components that are required for development.
Running Android Studio

Android Studio presents a splash screen when it starts running:

Figure 2. Android Studio's start screen

On your first run, you'll be asked to respond to several configuration-oriented dialog boxes. The first dialog box focuses on importing settings from any previously installed version of Android Studio.

Figure 3. Import settings

If you're like me, and don't have a previously installed version, you can just keep the default setting and click OK. Android Studio will respond with a slightly enhanced version of the splash screen, followed by the Android Studio Setup Wizard dialog box:

Figure 4. Validate your Android SDK and development environment setup

When you click Next, the setup wizard invites you to select an installation type for your SDK components. For now I recommend you keep the default standard setting.

Figure 5. Choose an installation type

Click Next and verify your settings, then click Finish to continue.

Figure 6. Review settings

The wizard will download and unzip various components. Click Show Details if you want to see more information about the archives being downloaded and their contents.

Figure 7. Review settings

If your computer isn't Intel based, you might get an unpleasant surprise after the components have completely downloaded and unzipped:

Figure 8. Intel-based hardware acceleration is unavailable

Your options are to either put up with the slow emulator or use an Android device to speed up development. I'll discuss the latter option later in the tutorial.Finally, click Finish to complete the wizard. You should see the Welcome to Android Studio dialog box:

Figure 9. Welcome to Android Studio

Android Studio on Linux

To install Android Studio on Ubuntu, proceed as follows:

  • Open terminal in Ubuntu.
  • Run below commands One by One
    • sudo add-apt-repository ppa:webupd8team/java
    • sudo apt-get update
    • sudo apt-get install oracle-java-installer
    • sudo apt-get install oracle-java8-set-default
    • sudo add-apt-repository ppa:paolorotolo/android-studio
    • sudo apt-get update
    • sudo apt-get install android-studio

If you're like me, and don't have a previously installed version, you can just keep the default setting and click OK. Android Studio will respond with a slightly enhanced version of the splash screen, followed by the Android Studio Setup Wizard dialog box:

Figure 1. Validate your Android SDK and development environment setup

When you click Next, the setup wizard invites you to select an installation type for your SDK components. For now I recommend you keep the default standard setting.

Figure 2. Choose an installation type

Click Next and verify your settings, then click Finish to continue.

Figure 3. Review settings

The wizard will download and unzip various components. Click Show Details if you want to see more information about the archives being downloaded and their contents.

Figure 4. Review settings

If your computer isn't Intel based, you might get an unpleasant surprise after the components have completely downloaded and unzipped:

Figure 5. Intel-based hardware acceleration is unavailable

Your options are to either put up with the slow emulator or use an Android device to speed up development. I'll discuss the latter option later in the tutorial.Finally, click Finish to complete the wizard. You should see the Welcome to Android Studio dialog box:

Figure 6. Welcome to Android Studio

You'll use this dialog to start up a new Android Studio project, work with an existing project, and more. You can access it anytime by double-clicking the Android Studio shortcut on your desktop.

Demo Setup

  • Demo Setup of Web
  • Demo Setup of Android
  • Setup for Firebase

Demo Setup of Web

How to set up Web and Admin Panel on localhost

  • When you will extract Main_File.zip then You will get 3 Folder,
    1. Web-and-admin-code.
    2. Android-app-code.
    3. Database-sql-file.
  • In the web and admin code folder, you will get the CI code, you just have to copy this code to your server
  • Now, We have also provided a the database file. You have to import it to your phpmyadmin for the database
  • Now go to ROOT_FOLDER/config/config.php to change the BASE_URL and setup your database setting http://domain_name/location_where_you_have_extracted_server.zip/
  • You need to put Base URL in single quotes ('base_url')
  • Now go to ROOT_FOLDER/config/config.php to Start the Session Save Path.
  • Update DB details, go to ROOT_FOLDER/config/database.php DB_DATABASE = "hostname"
    DB_USERNAME = "username"
    DB_PASSWORD = "password"
    DB_NAME = "database"
  • Setup is complete now you can check your project by http://DOMAIN_NAME/cafeadmin
    Admin Username : admin@gmail.com
    Admin Password : 123456

Demo Setup of Android

How To Open Project that is Not are In the list of Recent Projects:

Step 1 –Open Android Studio then Click on “Open an existing Android Studio project.

Step 2 – After that Select the File location where your file is located. And select "Online Grocery" project then click ok

Important Note

Alternatively you can also prefer opening build.gradle file to open project.

Step 3 – Select Projects >> app and then Click on java folder and then open com.caferia and Click utils then choose Consts file, here you can change the base url.

Step 4 – Select Projects >> app >> build.gradle

Please don't select lower version than 22. It is mendatory. You can select version higher than 22.

Step 5 – Select Projects >> app >> src >> main >> java >> com.caferia >> payment >> paypal >> PayPalConfig.java

You have to change the paypal client ID for configuring the payment gateway

Step 6 – Select Projects >> app >> src >> main >> java >> com.caferia >> payment >> PayMentGateWay.java

You have to change the merchant key and salt for completing the payment gateway

Setup for Firebase

How To Firebase key:

Step 1 –Go to Firebase.

Step 2 – Add to android app.

Once you have created a project, this is how the cosole of your firebase will look.

Step 3 – Enter your package name

You should be able to generate this certificate, paste it in the "Package Name" field and "add app".

Step 4 – Now, download the google-services.json config file and add it in the app folder of your android project.

Step 5 – How to get web API key

You need to click on firebase setting icon then you will get Web API key. Copy this and paste it to admin section.

Admin Dashboard

Admin can manage customers, wholesaler, item categories, Item unit etc.


Dashboard

Dashboard contain Total customers, total wholesalers, total items and total orders.

Customers

Admin has the rights to update customer profile, active-inactive their status.

Wholesalers

Admin has the rights to add wholesaler active-inactive their status.

Item Categories

Admin can create item category and delete.

Item Unit

Admin can create item units, edit and delete.

Items

Admin can select wholesaler from dropdown and when select specific wholesaler, you can check the list of items added by wholesaler account.

New Orders

Admin can check recent orders.

Delivered Orders

Admin can check delivered orders.

Cancelled Orders

Admin can also check cancelled order.

Setting

This option consist of multiple options as described below.

1) Theme Setting

You can manage the site settings from here.

2) API Settings

You can manage API settings from here.

Wholesaler Dashboard

Wholesaler can add items in the specific categories which is created by admin.


Dashboard

Dashboard contain total items and total orders.

Items

User can add items from here.

New Orders

User can also check their recent orders.

Delivered Orders

User can also check delivered orders.

Cancelled Orders

User has the rights to check cancelled order by admin or by customers.

Payment Notofication

Here is the list of apyment notifications.

Outro

Once again, thank you so much for purchasing this Application. As I said at the beginning, I will be glad to help you if you have any questions related to this application. No guarantees, but I'll do my best to assist you.If you have a more general question relating to the Online Grocery.


Kamlesh Yadav

Support Email:  support@himanshusofttech.com