Giter VIP home page Giter VIP logo

dareal's Introduction

Da Real

Este é um projeto que visa criar uma plataforma de compartilhamento e discussão de notícias da internet.

Instalação inicial

  • Clone este projeto

  • Instale a versão 2.7.0 (Recomendo usar um gerenciador de versão como o RBENV)

  • Instale o Node.js

    Fedora: sudo yum install nodejs
    Ubuntu: sudo apt-get install nodejs
    OSX: brew install nodejs
  • Execute o bundler para instalar as dependências:

    $ bundle
  • Crie um banco MySQL com username e password e preencha as variáveis em config/database.yml. Você também precisará de um banco de testes.

    development:
      adapter: mysql2
      encoding: utf8mb4
      reconnect: false
      database: lobsters_dev
      socket: /tmp/mysql.sock
      username: *dev_username*
      password: *dev_password*
    
    test:
      adapter: mysql2
      encoding: utf8mb4
      reconnect: false
      database: lobsters_test
      socket: /tmp/mysql.sock
      username: *test_username*
      password: *test_password*
  • Carregue o esquema do banco de dados.

    $ rails db:schema:load
  • Coloque o seu CSS em app/assets/stylesheets/local.

  • Popule o banco de dados com algumas seeds:

    $ rails db:seed
  • Para desenvolvimento, use o comando fake_data para gerar dados falsos. Depois suba o servidor. Você poderá logar em http://localhost:3000 com seu usuário test:

    $ rails fake_data
    $ rails server

Como contribuir

Faça um fork deste projeto e submeta um PR.

dareal's People

Contributors

a-chernykh avatar abdallahalsamman avatar alanpost avatar aminarria avatar arandomandy avatar avinassh avatar briankung avatar cosmicbuffalo avatar david-wolgemuth avatar derekprior avatar favadi avatar greysteil avatar hmadison avatar jbbarth avatar jcs avatar jdan avatar masongup avatar nyanpasu avatar pmueller avatar pushcx avatar rjsamson avatar srgpqt avatar talklittle avatar tansengming avatar thomasdziedzic avatar thomasdziedzic-pd avatar ur5us avatar walle avatar xtian avatar yaaase avatar

Watchers

 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.