Skip to content
Branch: master
Clone or download
Pull request Compare This branch is 221 commits ahead, 852 commits behind fga-eps-mds:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.expo
.github/ISSUE_TEMPLATE
api-mock
docs
mobile Hotfix app name Nov 26, 2018
.gitignore
.travis.yml
Makefile
README.md
docker-compose.yml
get-ip-address.py

README.md

CarDefense

An application developed by university students, for university students.

Requirements

This projects needs some requirements that need to be downloaded.

  • Expo Android - iOS - Installed in your own device.
  • Docker Ubuntu - MacOS/Win - Used to Configure the environment
  • Python - To get ip by script and optimize QR Code reading on Docker container

Development

The project is setup with Docker. running make will install and build the project and dependencies. This step depends of internet bandwith and cpu, maybe last around 5 minutes to download all dependencies for development, but after downloaded make will be much faster.

make

to get the containers down

make down

Inside docker's container, execute yarn start to run the react-native app. Then just get your camera and point to the QR Code on the terminal, this will launch Expo app in your device and build the project.

yarn start

Development Environment

Inside mobile directory, must have a .env file similar a file called env.mock-reference in the same directory. In order to maintain correct domains for external api paths.

Acessando variáveis de ambiente

console.log(`${process.env.INTEGRA_LOGIN_AUTH}/login`)
// must print a url similar to: http://5babadabecc1a70014306b40.mockapi.io/api/rest-auth/login

Mocked development

In order to easier the development conflicts about external APIs, it is introduced a external mocked backend. More info

You can’t perform that action at this time.