Skip to content

lauperalti/learningcamp-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails Template for Learning Camp

How to use

  1. Clone this repo

  2. Install PostgreSQL in case you don't have it

  3. Install Ruby in case you don't have it

  4. Install node and yarn. Expected node version ">=16 || 14 >=14.17".

  5. Run yarn install and yarn build --watch. This bundles the JS assets in the administration site using esbuild.

  6. bundle exec rspec and make sure all tests pass (non-headless mode) or HEADLESS=true bundle exec rspec (headless mode)

  7. rails assets:precompile to precompile assets

  8. Run bin/dev.

  9. You can now try your REST services!

Dev scripts

This template provides a handful of scripts to make your dev experience better!

  • bin/bundle to run any bundle commands.
    • bin/bundle install
  • bin/rails to run any rails commands
    • bin/rails console
  • bin/web to run any bash commands
    • bin/web ls
  • bin/rspec to run specs
    • bin/rspec .
  • bin/dev to run both Rails and JS build processes at the same time in a single terminal tab.
    • bin/dev

You don't have to use these but they are designed to run the same when running with Docker or not. To illustrate, bin/rails console will run the console in the docker container when running with docker and locally when not.

Gems

Code quality

With bundle exec rails code:analysis you can run the code analysis tool, you can omit rules with:

Credits

Rails Template for Learning Camp is maintained by Rootstrap

About

Rails Template for Learning Camp

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published