Skip to content

VictorS67/unitify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

expo sdk

Unitify

Forums Expo SDK version License: MIT GitHub last commit

View Demo | Offical Website | Report Bug | Request Feature


In response to the pandemic, Covid-19 caused a huge spike in bicycle sales. Because of increased concern about public transit and a need for physical activity, an increasing number of people are opting for one of the most basic modes of transportation, resulting in a so-called "bike boom.” Along with the increase in cycling came a huge drop in greenhouse gas emissions, which plunged to 4.6 percent in 2020. However, when the Covid-19 limitations were lifted and people returned to in-person school and work, bike use has declined, leading in an increase in automobile usage. What was thought to be a permanent decrease in emissions was nothing a blip, with global greenhouse gas emissions rising above pre-pandemic levels in 2021 and onwards. Zero emission vehicles are expensive and not accessible for everyone. Thus, it is necessary to generate a solution to which everybody in the world could contribute.

Unitify is an App run on Android and IOS. We hope it could encourage people use cycling as their main public transit mode therefore preventing greenshouse gas emissions.

Project Layout

  • frontend All the source code for Unifity App modules. Make sure you follow the software builds instruction below before you run it with Expo Go.
  • backend This is where you can find our data scheme on MongoDB and APIs for connecting from Unitify App to backend.

Software Builds

frontend

  1. You should run all command below under frontend.

    cd frontend
  2. Follow Expo Installation Guide to install all required tools on your development environment.

  3. Install all dependencies.

    • expo-cli
      npx expo install
    • or npm
      npm install
    • or yarn
      yarn install
  4. Configure your expo app.

  5. Build your project locally.

    • expo-cli
      npx expo start
    • or npm
      npm start
    • or yarn
      yarn start
  6. Open your project on Expo Go (Android/IOS).

backend

  1. Set up environment.

    • Ubuntu 20.04
    • MongoDB 5.0.9
    • Nginx 1.18.0
    • Redis 5.0.7
  2. Installation instructions.

    1. Clone the repo. git clone https://github.com/VictorS67/unitify.git

    2. Switch to the backend branch (for the latest version of backend, or you can get the stable version in the main branch). git checkout backend

    3. Install all the necsessary node libraries and dependencies. npm install

    4. Now, you need to set up the necessary environments: Run this code first to copy from the .env template: cp .env-sample .env

      MONGODB_URI=YOUR_MONGODB_CONNECTION_STRING
      SIGNATURE_CHAR_LIMIT=THE_CHAMPION_SIGNATURE_LENGTH_LIMIT
      CHECK_CHAMPION_CRON=CRON_FREQUENCY_OF_CHECKING_CHAMPION
      UPDATE_RANKS_CRON=CRON_FREQUENCY_OF_UPDATING_LEARERBOARDT
      PORT=PORT_THE_BACKEND_IS_RUNNING
      
  3. Run the backend server.

    • Now, after the above steps, you can run the backend: node unitify-server.js

    • And you can verify by running: localhost:PORT/hello-world

    • You should be able to see the following output in your browser: Congratulations, the Unitify backend is now running.

  4. Production Builds.

The Team

Here are our team members!

License

The Unitify source code is made available under the MIT license. Some of the dependencies are licensed differently, please check them on Expo, react-native-maps, react-native-google-places-autocomplete, react-native-paper, react-navigation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •