Go to file
snogrammer 8db72adbe5 update views and styles to use classes for common styles. 2020-12-19 11:46:29 -07:00
app update views and styles to use classes for common styles. 2020-12-19 11:46:29 -07:00
bin initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 2020-03-21 11:53:34 -06:00
config remove fontawesome kit and update with webpacker. 2020-05-10 12:54:50 -06:00
db add rspec to template. 2020-03-22 14:12:47 -06:00
lib update views, mailers, styles, etc. 2020-04-25 19:41:40 -06:00
log initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 2020-03-21 11:53:34 -06:00
public update views, mailers, styles, etc. 2020-04-25 19:41:40 -06:00
script initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 2020-03-21 11:53:34 -06:00
spec add rspec to template. 2020-03-22 14:12:47 -06:00
tmp initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 2020-03-21 11:53:34 -06:00
vendor initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 2020-03-21 11:53:34 -06:00
.browserslistrc initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 2020-03-21 11:53:34 -06:00
.env.docker remove fontawesome kit and update with webpacker. 2020-05-10 12:54:50 -06:00
.gitignore add rspec to template. 2020-03-22 14:12:47 -06:00
.npmrc remove fontawesome kit and update with webpacker. 2020-05-10 12:54:50 -06:00
.rspec add rspec to template. 2020-03-22 14:12:47 -06:00
.rubocop.yml add rspec to template. 2020-03-22 14:12:47 -06:00
.ruby-version initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 2020-03-21 11:53:34 -06:00
Dockerfile initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 2020-03-21 11:53:34 -06:00
Gemfile add fontawesome gem. 2020-05-02 09:36:31 -06:00
Gemfile.lock add fontawesome gem. 2020-05-02 09:36:31 -06:00
Procfile update views, mailers, styles, etc. 2020-04-25 19:41:40 -06:00
README.md remove fontawesome kit and update with webpacker. 2020-05-10 12:54:50 -06:00
Rakefile initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 2020-03-21 11:53:34 -06:00
babel.config.js initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 2020-03-21 11:53:34 -06:00
config.ru initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 2020-03-21 11:53:34 -06:00
docker-compose.yml update views, mailers, styles, etc. 2020-04-25 19:41:40 -06:00
package.json update views, mailers, styles, etc. 2020-04-25 19:41:40 -06:00
postcss.config.js initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 2020-03-21 11:53:34 -06:00
yarn.lock update views, mailers, styles, etc. 2020-04-25 19:41:40 -06:00

README.md

Rails 6 template

This repo is a designed to be a Dockerized Rails 6 template:

Setup

  • bundle
  • yarn install --check-files
  • Find/replace all TODO
  • docker-compose up --build
  • FONTAWESOME_NPM_AUTH_TOKEN=CHANGE_ME yarn add @fortawesome/fontawesome-pro

Dependencies

This service has dependencies on the following services.

  1. Ruby 2.6.5
  2. Rails 6.x
  3. Postgres
  4. Redis
  5. Webpacker
  6. Yarn
  7. Stimulus

Docker

Follow the Docker Getting Started guide to get docker, docker-machine and docker-compose. This project contains helper scripts to build, test, & push images to dockerhub.

1. Build image: $ script/build

  1. Run the test suite: $ script/test

Docker Compose

Docker compose is used for Jenkins and local development. Use the information below to configure each environment.

Local development

To start the application using docker compose locally:

  1. Start the services: $ docker-compose up --build
  2. Access via browser: $ open http://localhost:3000

Environment Variables

Variable Description Default
APP_NAME App name app
APP_TITLE App title TODO
DATABASE_URL Database URL postgres://localhost:5432/app_development
DB_CONNECT_TIMEOUT Db connect timeout 10
DB_MAX_CONNECTIONS Db Max Connections 16
DB_MIN_CONNECTIONS Db Minimum Connections 5
DB_SOCKET_TIMEOUT Db socket timeout 5
DB_WAIT_QUEUE_TIMEOUT Db Wait queue timeout 5
FONTAWESOME_NPM_AUTH_TOKEN FontAwesome Auth token -
LOG_LEVEL Log level warn
REDIS_URL Redis Url redis://localhost:6379/0
SMTP_HOST Smpt address localhost
SMTP_PORT Smpt port 1025
WEBPACKER_HOST Webpacker host localhost
WEBPACKER_DEV_SERVER_HOST Webpacker dev host 0.0.0.0

TODO

  • Heroku Procfile