Code Monkey home page Code Monkey logo

it61-rails's Introduction

It61

CircleCI

Requirements

  • Ruby 2.4.1 (with bundler)
  • PostgreSQL >= 9.5
  • Redis

Development setup

  1. Install gems

    bundle install

  2. optional Install overcommit for GIT commit hooks

  3. optional Install GIT hooks with overcommit:

    overcommit --install -f
    
  4. optional Run overcommit --sign to trust the hooks in this repository.

  5. Before creating the database you must setup connection strings for PostgreSQL and Redis. Put these default values to .env file:

    DATABASE_URL=postgres://postgres@localhost:5432/it61
    REDIS_URL=redis://localhost:6379
    
  6. Setup database and run migrations

    rails db:setup
    
  7. Run server ./bin/rails server

Docker development setup

Docker-based development environment requires docker-compose >= 1.9.0.
Visit https://docs.docker.com/compose/install/ for more details.

Forwarded ports and access:

  • Web: http://localhost:3000 (host machine).
  • Database: postgres://postgres@localhost:6543 (host machine).

Use bin/dev helper script for docker-compose management. Run bin/dev -h to see help for this tool.

First time you will need to build containers, get gems installed and manually migrate database.

$ bin/dev up -d
$ bin/dev log
### wait until gems installed
$ bin/dev migrate
### develop
$ bin/dev stop

After first run when all gems installed and migration applied you can just use simple bin/dev start and bin/dev stop commands to start and stop dev environment.

Guidelines

Use the following guides for getting things done, programming well, and programming in style.

it61-rails's People

Contributors

a1tavista avatar alx-khramov avatar avasyutin avatar evseevdev avatar jugastrov avatar kovalevsky avatar lex111 avatar neverhappened avatar nu-hin avatar ohru avatar pplevako avatar psylone avatar subzey avatar tamtamchik avatar timocov avatar valexl avatar vitallium avatar vpetrenko avatar vtambourine avatar xamgore 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.