Giter VIP home page Giter VIP logo

biohacking's Introduction

Pra configurar development

Criar conta no heroku, adicionar addons SendGrid, Airbrake Bug Tracker, Logentries e SearchBox Elasticsearch.

Pré-requisitos: Node 7 (sugiro com nvm) Postgresql

Instalar node.

nvm install node

Caso já tenho nvm, garantir que está usando o último.

nvm use 7

Instalar pacotes globais.

npm i -g pg sequelize-cli create-react-app nodemon

Clonar o projeto e instalar dependências.

git clone [email protected]:cmilfont/biohacking.git
cd biohacking
npm i
cd client
npm i

Configurar dados do banco postgres no arquivo server/config/config.json

Exportar variaveis de ambiente, sugiro criar um arquivo na raiz do projeto chamado config.env e colocar nele.

Exemplo (lembrar que pra windows é com set):

export SENDGRID_APIKEY=SG.D8Kte9yITmyYO99E5f5PcA.Bqi69X4yyuIah-xxxxxxxxxxxxxxxxxxxxxxxxx
export AIRBRAKE_API_KEY=4a68026f35d09256a77xxxxxxxxxxxx
export AIRBRAKE_PROJECT_ID=10000
export LOGENTRIES_TOKEN=b8xxxx7c-xxxx-46e3-b564-xxxxxxxxxxx

Essas infos voce pega nos serviços a partir do heroku, algumas delas não são cadastradas automaticamente, então sugiro introduzir manualmente em https://dashboard.heroku.com/apps/seuprojeto/settings clicanco em Reveal Config Vars*.

Criar o banco e rodar a app.

npm run db:create
sequelize db:migrate
sequelize db:seed:all
npm run dev

biohacking's People

Contributors

cmilfont avatar levymoreira avatar chicojunior avatar kleyson avatar rubensgadelha avatar hvitorino avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.