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 |
-
Clone the project.
git clone [email protected]:AndriiKotsiuruba/jabko_service.git
-
Ask the tech lead or lead developer for the
.env
file. Add it to the project root folder. -
Build application.
docker-compose up --build
-
Run seeds.
docker-compose exec backend rails db:seed
development
- deploying to staging
master
(with tag) - deploying to production
Name | Link |
---|---|
Frontend | http://localhost:3000 |
Show Emails | http://localhost:3000/letter_opener |
Production | https://jabko-service.onrender.com |
Name | Login | Password |
---|---|---|
User | [email protected] | Password1 |
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