Skip to content

A mobile app for SparkRentals. Programmed with React Native.

License

Notifications You must be signed in to change notification settings

FalkenDev/SparkRentals-Mobile-App

Repository files navigation

Mobile app for SparkRentals Project

Content

About

This project is created by 4 students who attend Blekinge Institute of Technology in web programming. We were given the task of creating a system for a scooter company where we would, among other things, create a mobile-adapted web app for the customer, administrative web interface, a simulation program for the electric scooters, an intelligence program in the bicycle and a Rest API that distributes and retrieves information from the entire system and stores the information on a database.

The entire project is available at: https://github.com/FalkenDev/V-Team-SparkRentals

Background

The mobile app will allow customers to rent electric scooters. Customers may need to log in or register before they can access the service. The app presents a map with all available scooters mapped by their position. In order to be able to rent an electric scooter, the customer needs to deposit money by inserting a prepaid card with a code that contains money to top up their balance. To start a trip with a bicycle, the QR code is scanned or the bicycle is selected on the map. The app also maps all the different parking zones so the user knows where it is best to park the electric scooter after the trip and where the customer is not allowed to park their scooter anywhere.

The app will be built with React Native and retrieve data from our REST API.

Mobile App Design

Download

Required environment variables

.env:

# Rest API
API_KEY='Your API KEY'

types/env.d.ts

declare module '@env' {
export const API_KEY: 'Your API KEY'
export const REST_API: 'http://localhost:8393/v1'
}

Run it localy

  • Fork the project / donwload the project.

npm install --legacy-peer-deps

  • Create .env and types/env.d.ts file and insert the environment variables and change the inputs.

expo start --tunnel

Run it on Docker

OPS! Don't forget to send your env files in docker run command

docker run -it oscaridberg/spark-rentals-mobile-app:latest

Usage

To use the Mobile app you need to scan the qr code or enter the link in the mobile (Need to have the expo app). The link can be found in the terminal when running the mobile app.

License and Tools

NPM Expo ESLint Docker TypeScript React Native

Scrutinizer Code Quality Build Status

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •