Skip to content

fga-eps-mds/2018.2-FGAPP-FrontEnd

Repository files navigation

Integra APP

An application developed by university students, for university students.

Download the application here!

You can also test the beta of the application by registering for this link: https://play.google.com/apps/testing/com.unbgama.integra

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, has a .env file. In order to maintain correct domains for external api paths.

Using environment variables on JS

console.log(process.env.VARIABLES_NAME)

fetch(process.env.USERS_API + 'users/1', {
    method: 'GET',
    headers: {
    'Content-Type': 'application/json',
    }
})

.env

USERS_API=https://www.users.com/

Mocked development

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