Skip to content

SerjZzz/Task-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

203 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TaskManager

Build Status Ruby Style Guide Coverage Status

See the test production server available at render(dot)com.

TaskManager is a Trello-like board project.

The project was designed as the test assignment during educational course at DualBootPartners Inc.

It is my pioneer effort in developing leading-edge applications based on the technology stack below:

Table of contents

Installation

TaskManager uses Docker-compose.

Building the project with Docker-compose

All you need to build the project is install Docker and follow the steps below from project working directory.

Build docker image

docker-compose build

Install Rails dependencies

docker-compose run --rm web bash -c "bundle install"

Create Rails database

docker-compose run --rm web bash -c "bundle exec rails db:create db:migrate"

Webpacker install and compile assets

To install run:

docker-compose run --rm web bash -c "bundle exec rails webpacker:install"

To compile run:

docker-compose run --rm web bash -c "bundle exec rails assets:precompile && bundle exec rails webpacker:compile"

Interactive bash session

Run interactive bash session if you need to access into the docker container:

docker-compose run --rm --service-ports web /bin/bash

Up and run docker-compose image

docker-compose up

Test suite

Rails tests

Run all the tests inside the container.

Run Rails test suite using the code below:

bundle exec rails test

Check code-styles with Rubocop

Execute Ruby and RubyOnRails code-styles tests using the command inside the container:

bundle exec rubocop -a

JavaScript linter

ESlint with Prettier tests can be run via the yarn linter:

yarn lint

Environment variables

Rubyconfig Gem

All the custom ENV variables configured with Rubyconfig Gem.

Production ENV variables

  • .env file includes all the settings and private keys.
  • .env.example file includes all the settings and private keys with empty variables from .env file. Copy that file and fill it with valid values when you deploy the project in the new environment.

Mailer web-interfaces

  • http://localhost:3000/letter_opener/: Preview email in the default browser instead of sending it in your development environment. Designed with Letter Opener and Letter Opener Web Gems.
  • http://localhost:3000/rails/mailers/user_mailer/: Preview letters layout using ActionMailer::Preview.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published