GithubHelp home page GithubHelp logo

davidsiaw / rails-zen Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 814 KB

The best rails skeleton

License: MIT License

Ruby 75.81% JavaScript 1.33% CSS 0.76% HTML 18.19% Dockerfile 3.01% Shell 0.58% Procfile 0.32%
rails skeleton selenium tests factorybot docker redis sidekiq papertrail uild

rails-zen's Introduction

Rails Zen

This is a skeleton app for writing APIs.

This skeleton allows you to achieve zen with Rails.

Features

Feature
Gitlab pipeline status Comes with default Gitlab CI Configuration
CircleCI build status Comes with default Circle CI Configuration
Github Actions status Comes with default Github Actions Configuration
Dependabot Constantly updates dependencies
  • Uses Grape API
  • Provides Swagger UI for viewing your API
  • Has Papertrail
  • IDs default to ULIDs
  • Comes with Redis
  • Comes with Sidekiq
  • Comes with a nice docker compose that sets up a dev environment that you can use immediately
  • Devise for swagger and sidekiq dashboards (and everything else you want)
  • Pre-prepared browser test suite

Getting Started

Rails Zen comes with a set of useful bash scripts for happy debugging

bin/start              # Start the dev stack
bin/stop               # Shutdown the dev stack
bin/close              # Stop the devstack and delete everything
bin/test               # Run tests
bin/watch              # Watch the logs
bin/attach             # Attach to rails for debugging with binding.pry
bin/shell              # Shell into the rails container

Where's my API at

View your API at http://localhost:3000/swagger

user: [email protected]
pass: asdasd

How to edit database

Comes with PGAdmin at http://localhost:5050.

user: [email protected]
pass: admin

Unit container

Rails Zen also runs inside a single container where redis and postgres also run.

docker-compose -f docker-compose.unit.yml up -d # Start

My project is not called Rails Zen

There is a script that renames your application and database classes called bin/rename

Simply use that script to rename your project to whatever you like!

bin/rename hello_trains

rails-zen's People

Contributors

davidsiaw avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.