Skip to content

tokiwatch/gitfab2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,637 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitfab2 Build Status Code Climate Coverage Status

Setup a build environment

Requirements

  • Docker 17 ce or later
  • Docker Compose 1.16 or later
  • direnv
  • rbenv
  • node.js

Installation

$ git clone git@github.com:webdino/gitfab2.git
$ cd gitfab2
$ rbenv install `cat .ruby-version`
$ gem install bundler --no-document
$ bundle install
$ npm install
$ npm run build
$ cp config/database.ymls/development.yml config/database.yml
$ cp .envrc.sample .envrc
$ vi .envrc
$ direnv allow

Start Docker Compose

$ docker-compose up -d
$ docker-compose ps
              Name                             Command               State            Ports
----------------------------------------------------------------------------------------------------
gitfab2_db_1                 docker-entrypoint.sh --inn ...   Up      0.0.0.0:13306->3306/tcp

Create database

Dockerコンテナを起動してから

$ bundle exec rake db:create
$ bundle exec rake db:migrate

Run Server

$ bundle exec rails s

Open https://localhost:3000 in your browser.

Frontend

app/frontend/ 以下の開発を行う場合は、 npm start でwebpackを起動する。

app/frontend/ 以下に変更を加えない場合は、一度 npm run build をすればOK。

Assets

assets/stylesheets/ 以下に変更を加えた場合は、

$ bundle exec rake assets:clear
$ bundle exec rake assets:precompile

で反映される。

Run tests

$ bundle exec rspec

License

gitfab2 is released under the Apache License, Version 2.0.

Copyright 2017 WebDINO Japan.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Ruby 49.0%
  • HTML 29.1%
  • CSS 14.7%
  • JavaScript 6.9%
  • TypeScript 0.3%