Skip to content

AndriiKotsiuruba/jabko_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Stack & Features

Name Technologies
Backend Ruby 3.2.3
Rails 7.1.3
Frontend Javascript
Stimulus
Bootstrap
CSS, SCSS
HTML, Slim
Database PostgreSQL
Server Puma
Testing Tools RSpec
Shoulda Matchers
WebMock
FactoryBot
Faker
Swagger
SimpleCov
TestProf
Linters Rubocop
Slim-Lint
ESLint
Upload / Storage Shrine + S3
Pagination Pagy
Authorization Pundit
Authentication Devise

Getting Started

  1. Clone the project.

    git clone [email protected]:AndriiKotsiuruba/jabko_service.git
  2. Ask the tech lead or lead developer for the .env file. Add it to the project root folder.

  3. Build application.

    docker-compose up --build
  4. Run seeds.

    docker-compose exec backend rails db:seed

Branches

development - deploying to staging

master (with tag) - deploying to production

Links

Name Link
Frontend http://localhost:3000
Show Emails http://localhost:3000/letter_opener
Production https://jabko-service.onrender.com

Credentials

Name Login Password
User [email protected] Password1

Commands

yarn docker:exec <command> - execute command inside backend container

yarn docker:status - show status of running containers

yarn docker:build - build project

yarn up - start development environment (you can use -d option for silence mode)

yarn stop - stop containers

yarn down - down containers

yarn bash - go inside the backend container to execute commands

yarn c - run Ruby console inside the backend container

yarn routes - show all routes (you can find all matches yarn routes | grep <resource_name>)

yarn db:seed - run seeds

yarn db:replant - truncate DB and run seeds

yarn db:migrate - run migrations

yarn db:rollback - run migration rollback

yarn db:reset - run reset the database (drop, create, migrate, seed)

yarn rubocop - run Rubocop (you can use -a option to fix some issues)

yarn slimlint - run Slim-Lint

yarn jslint - run ESLint (you can use --fix option to fix some issues)

yarn rspec - run RSpec in parallel mode

yarn linters - run linters and tests (rubocop, slimlint, eslint, rspec)

yarn docs - run Swagger docs generating

yarn annotate - run Annotate models

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published