Skip to content

Latest commit

 

History

History
171 lines (77 loc) · 4.14 KB

developers-guide.md

File metadata and controls

171 lines (77 loc) · 4.14 KB

Dependencies

Backend

    MongoDB
    Node.js
    Kafka
    Chat GPT 3
    Discord
    DigiLocker ( Mock API’s )
    AssemblyAI
    Sendgrid 

Setup Guide for BPP-Innovation repo

Steps

  1. Install required tools & dependencies

    Install any IDE (eg: VScode)

    Install Nodejs: https://nodejs.org/en/download/

    Install MongoDB: https://docs.mongodb.com/manual/installation/

  2. Clone the Bpp-innovation repository.

    git clone https://github.com/rakeshSgr/bpp-innovation.git

  3. Add a .env file to the project directory

    Create a .env file in the src directory of the project , you can copy variables from .env.sample file and make necessary changes

  4. Start MongoDB locally

Based on your host operating system and method used, start MongoDB.

  1. Install Npm packages

ELEVATE/bpp-innovation/src$ npm install

  1. Start bpp-innovation server

ELEVATE/bpp-innovation/src$ node app.js

Frontend

  1. Ionic

        Ionic CLI                    : 5.4.16 (/usr/local/lib/node_modules/ionic)                                                    
    
    
        Ionic Framework              : @ionic/angular 6.5.6                                                      
    
    
        @angular-devkit/build-angular: 13.2.6                                                         
    
    
        @angular-devkit/schematics   : 13.2.6                                                         
    
    
        @angular/cli                 : 13.2.6                                                                 
    
    
        @ionic/angular-toolkit       : 6.1.0    
    
  2. Capacitor

     Capacitor CLI           : 3.9.0         
     @capacitor/android      : 3.6.0                                                          
     
     @capacitor/core         : 3.9.0                                                                             
    
    	@capacitor/ios          : 3.5.0   
    
  3. Utility

     cordova-res : 0.15.4                                                                            
    
     native-run  : 1.7.1   
    
  4. System

     Android SDK Build-tools : 34-rc1                    
    
     Android SDK Platform-tools : 33.0.3         
     
     NodeJS            : v18.12.1 (/usr/local/bin/node)     
     
     npm               : 8.19.2                    
    
     OS                : Linux 5.15   
    

Ionic Android Build Setup

CLI Setup

  • npm install -g ionic
  • npm install @capacitor/core
  • npm install @capacitor/cli --save-dev

Project Setup

Build APK

  • To check attached devices do adb devices
  • Run ionic build (Make sure you have attached device)
  • Run ionic cap sync
  • Run ionic cap run android
  • Apk location project_folder/android/app/build/outputs/apk/debug/apk_name.apk

Debug APK

  • Open chrome and enter chrome://inspect
  • Select app