GithubHelp home page GithubHelp logo

soya-miyoshi / rails-example Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 61 KB

My rails example project. TODO: add CI, improve developer experience

License: MIT License

Dockerfile 5.15% Ruby 75.84% Procfile 0.30% JavaScript 3.57% CSS 1.55% HTML 12.87% Shell 0.41% TypeScript 0.32%

rails-example's Introduction

rails_example

This is a Rails 7 app.

Documentation

This README describes the purpose of this repository and how to set up a development environment.

Prerequisites

This project requires:

  • Ruby 3.1.1, preferably managed using rbenv
  • Bundler 2.4.21 (run bundle update --bundler)
  • gem 3.4.21
  • Node and Yarn 1.x (npm install -g yarn)
  • PostgreSQL must be installed and accepting connections (run brew install postgresql )

On a Mac, you can obtain all of the above packages using Homebrew.

Getting started

bin/setup

Run the bin/setup script. This script will:

  • Install dependencies using Bundler and Yarn
  • Create a .env.development file
  • Create, migrate, and seed the database

Run it!

Start the app with yarn start.

The app will be located at http://localhost:3000/.

Development

To run the full suite of tests and lint checks, run:

$ bin/rake

To auto-correct formatting and linting issues, run:

$ bin/rake fix

Deployment

Ensure the following environment variables are set in the deployment environment:

  • DATABASE_URL
  • RACK_ENV
  • RAILS_ENV
  • SECRET_KEY_BASE

Optionally:

  • BASIC_AUTH_PASSWORD
  • BASIC_AUTH_USERNAME
  • POSTMARK_API_KEY
  • RAILS_DISABLE_SSL
  • RAILS_HOSTNAME
  • RAILS_LOG_TO_STDOUT
  • RAILS_MAX_THREADS
  • RAILS_SERVE_STATIC_FILES
  • REDIS_URL
  • SIDEKIQ_CONCURRENCY
  • SIDEKIQ_WEB_PASSWORD
  • SIDEKIQ_WEB_USERNAME
  • WEB_CONCURRENCY

rails-example's People

Contributors

soya-miyoshi 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.