This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
- Setup PostgreSQL
https://www.digitalocean.com/community/tutorials/postgresql-ubuntu-16-04-ru
- Install gem pg:
# Install gem pg
$ sudo apt-get install libpq-dev
$ gem install pg -- --with-pg-lib=/usr/lib
- Install yarn
https://yarnpkg.com/lang/en/docs/install/#debian-stable
$ yarn install --check-files
- Then, in your project directory:
$ bundle install
$ rake db:create
$ rake db:migrate
- Run application:
$ foreman start -f Procfile.dev -p 3000
- Install eslint for checking react and js files
$ npm install -g eslint
$ npm install eslint-plugin-react@latest --save-dev
Then run:
$ eslint [options] file.js [file.js] [dir]
- Install query-string for parse in react
npm install query-string
- Install dotenv for emv variables in react
npm install dotenv --save
- Ruby 2.6.3
- Rails 5.2.3
- PostgreSQL 11.4