This is a simple Rails App to see whether candidates have the minimum skills to participate in the development of Patentfield.
-
install git for windows
https://gitforwindows.org/ -
set up SSH for GitHub
see https://qiita.com/shizuma/items/2b2f873a0034839e47ce
(We can use git bash for command line on windows) -
install Docker for windows
https://store.docker.com/editions/community/docker-ce-desktop-windows -
set to share local drive for docker process
Task tray -> Docker icon -> Settings -> Shared Drives -> check C -> Apply -
clone repository
git clone [email protected]:patentfield/rails-minimum-skill-check
- build docker image
cd rails-minimum-skill-check
docker-compose build
- run docker containters
docker-compose up -d
- create database
winpty docker exec -ti railsminimumskillcheck_web_1 bash
bundle exec rake db:create
bundle exec rake db:migrate
- access to http://localhost:3000 with your browser
-
install postgresql
-
create database user 'devuser'
-
install ruby 2.7.2 (recommend using rbenv)
-
install gems via bundler
gem install bundler
bundle install --path vendor/bundle
- create database
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed
- run rails server
bundle exec rails s -b 0.0.0.0
- Install yarn
yarn install
- run webpack dev server to build quickly
bin/webpack-dev-server
- You can sign in with the following credential on development environment
id: [email protected]
password: password
© 2018 Patentfield. All Rights Reserved.
Patentfield has a right to change the license including contributed patches.