Skip to content
/ meetapp Public

[Bootcamp-GoStack 8] A web system using Node.js, ReactJS and React-Native

Notifications You must be signed in to change notification settings

brochj/meetapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Como utilizar

git clone https://github.com/brochj/meetapp

API

Entrar na pasta da API

cd meetapp/backend

Instalar as dependências

yarn

Criar os bancos de dados

docker run --name meetappDB -e POSTGRES_PASSWORD=docker -e POSTGRES_DB=meetapp -p 5432:5432 -d postgres
docker run --name mongomeetapp -p 27017:27017 -d -t mongo
docker run --name redismeetapp -p 6379:6379 -d -t redis:alpine

Migrations e Seeds

irá executar as migrations e depois as seeds.

yarn seed

Executar a API

yarn dev

Frontend

cd meetapp/frontend

Instalar as dependências

yarn

Executar

yarn start

Mobile

OBS: foi testado apenas no android (8.1) utilizando o modo de debug por USB.

cd meetapp/mobile

Instalar as dependências

yarn

Configurar

O arquivo src/config/appConfig.js está configurado para executar pelo USB.

export const serverIP = "192.168.16.101"; // default 'localhost'
export const serverPort = "3333";

const appConfig = {
  reactotronHost: serverIP, // configure({ host: appConfig.reactotronHost })
  apiBaseURL: `http://${serverIP}:${serverPort}`, // axios
  imagesHost: serverIP // default 'localhost'
};

export default appConfig;
  • serverIP é o IP da API, se estiver utilizando um debug por USB colocar o IP da máquina
  • imagesHost host da url das imagens, deve ser o IP da API. (Não precisa alterar)

Executar

yarn start
react-native run-android

About

[Bootcamp-GoStack 8] A web system using Node.js, ReactJS and React-Native

Resources

Stars

Watchers

Forks

Packages

No packages published