Skip to content

Project developed during 11ª OmniStack Week from Rocketseat, for study purposes.

License

Notifications You must be signed in to change notification settings

arrudadev/be-the-hero

Repository files navigation

Be The Hero

🚀 OmniStack Week 11.0

Technologies   |    Overview   |    Getting started   |    Contributing   |    License

ci Coverage Status License: MIT PRs Welcome


BeTheHero


BeTheHero


BeTheHero


BeTheHero


BeTheHero


BeTheHero


BeTheHero

🚀 Technologies

This project was developed with the following technologies:

💻 Overview

BeTheHero is a project that aims to connect people who wish to make monetary contributions to NGOs (non-governmental organizations) that need help.

📝 Getting started

First you need to have node and yarn installed on your machine. Then, you can clone this repository.

git clone https://github.com/monteiro-alexandre/be-the-hero.git

Install dependencies:

yarn

Packages dependencies:

yarn bootstrap

Backend setup

Enter in folder packages/backend and Configure environment variables:
(create .env file based on .env.example)

# Port that the server is running, example: 3333
SERVER_PORT=3333 

Run database migrations:

yarn migrate:latest

Start server:

yarn start

Frontend setup

Enter in folder packages/frontend and Configure environment variables:
(create .env file based on .env.example)

# backend url
REACT_APP_API_BASE_URL=http://your_machine_ip_address:3333

Start aplication:

yarn start

Mobile setup

Enter in folder packages/mobile and Configure environment variables:
(create environment.ts file based on environment.example.ts)

import Constants from 'expo-constants';

const ENV = {
	development: {
		apiUrl: 'http://your_machine_ip_address:3333/',
	},
	staging: {
		apiUrl: '',
	},
	production: {
		apiUrl: '',
	},
};

const getEnvVars = (env = Constants.manifest.releaseChannel): any => {
	let environment;
	// What is __DEV__ ?
	// This variable is set to true when react-native is running in Dev mode.
	// __DEV__ is true when run locally, but false when published.
	// eslint-disable-next-line
	if (__DEV__) {
		environment = ENV.development;
	} if (env === 'staging') {
		environment = ENV.staging;
	} if (env === 'production') {
		environment = ENV.production;
	}
	return environment;
};

export default getEnvVars;

Start Expo DevTools:

yarn start

Than you can open the app in your cell phone using the Expo client app for IOS and Android, see:

Expo Documentation

🤔 Contributing

Please read CONTRIBUTING.md for details on the code of conduct and the process for submitting pull requests.

📝 License

This project is under the MIT license. See the archive LICENSE for more details.