Giter VIP home page Giter VIP logo

bodaapp's Introduction

BodaApp

Boda is a react-native taxi app template.

BodaApp

Boda
Watch in youtube

Designed for android . Not yet developed for ios, but I'm working on updating it!

Download

  1. Download with :
    $ git clone https://github.com/code-ninja-james/BodaApp

Configuration

  1. mobile

    • In the BodaApp folder in your terminal

      For npm run

      • $cd mobile && npm install

      For yarn run

      • $cd mobile && yarn install
    • Google api key configuration

      • In mobile folder using a code editor edit googleapikey.js
      • In mobile/android/app/src/main/androidmanifest.xml change this
        android:value="YourGoogleApiKey"/>
    • Backend and Frontend connect

      • In mobile/baseUrl.js file change the ip adress to your server's internal ip adress don't change the port number 4000
      • In mobile/screens folder in the Driver.js and Passenger.js change the ip adress for socket.io connection to you server internal ip adress don't change the port number 3000
    • Change gradle files in your android folder

      • The app won't work if the android files are not compatible with your environment
      • Use android studio and stackoverflow for better debbugging

2.express-backend

  • In the BodaApp folder in your terminal

    For npm run

    • $cd express-backend && npm install

    For yarn run

    • $cd express-backend && yarn install
  • Create a database in MongoDbAtlas

    • In MongoDb Atlas create a cluster with one database and a user with read and write priveledges

    • Use a code editor preferrably vscode to edit config folder in express-backend

      • In mongodb.js in config folder change this line 'mongodb+srv://YOUR_USERNAME_HERE:'+ encodeURIComponent('YOUR_PASSWORD_HERE') + '@CLUSTER_NAME_HERE.mongodb.net/test?retryWrites=true' you can check here on how to do it correctly
      • In auth.js in config folder const jwtSecret ="replace with any string";

Running the App

1.Open an android emulator in the mobile folder run in your terminal
$react-native start
   then
$react-native run-android

  1. In the express-backend run
    nodemon index.js

  2. In the socket.io-backend run
    nodemon index.js

How to Contribute

  1. Clone repo and create a new branch: $ git checkout https://github.com/code-ninja-james/BodaApp -b name_for_new_branch
  2. Make changes and test
  3. Submit Pull Request with comprehensive description of changes

bodaapp's People

Contributors

code-ninja-james avatar

Stargazers

Alexander avatar Alvine Apwoka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.