Code Monkey home page Code Monkey logo

rails-web-starter's Introduction

Rails web starter application

Rails 6, Devise authentication, CanCanCan user role based authorization, Rspec and Twitter bootstrap 4 CSS framework integrated sample project.

Software Versions

  • Ruby 3.0
  • Rails 6.1.1
  • PostgreSQL 12.1
  • NodeJS >= 15.0.1

Source code repository

$ git clone [email protected]:masudcsesust04/rails-web-starter.git
$ git fetch origin
$ git checkout -b development origin/development

Note: Use development branch for application developmet. Start from this branch to create your feature branches.

System dependencies

$ gem install bundler
$ bundle config set --local path vendor/bundle
$ yarn install

Configuration

  • Make a copy of .env.sample file as .env and update DB configuration as your db host, name etc.

Database creation

$ bundle exec rake db:create:all

Database initialization

$ bundle exec rake db:migrate
$ bundle exec rake db:seed
$ bundle exec rake db:test:prepare

Run application

$ bundle exec foreman start -f Procfile.dev

or

$ bash run.sh

Enter rails console

$ bundle exec rails c

Run the rspec test suite

# to run all of the test suite
$ bundle exec rspec 

# to run sepcific spec file
$ bundle exec rspec file_name_with_path 

Run rubocop to fix offenses

$ bundle exec rubocop

Services (job queues, cache servers, search engines, etc.)

  • Add here, If you used any over the application development life cycle.

Deployment instructions

  • Add capistrano or
  • Docker deployment instructions

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.