Skip to content

seniorihor/rebilling_app

Repository files navigation

Rebilling App

Setup Project

Follow these steps to set up the Rebilling App project on your local machine:

Steps (with docker)

  1. Build docker image:
  docker build -t rebilling_app .
  1. Run container:
  # rails server will run automatically
  docker run -p 3000:3000 --name rebilling_app rebilling_app
  1. Connect to container:
  docker exec -it rebilling_app sh

Steps (without docker)

  1. Install dependencies:
bundle install
  1. Set up the database:
bundle exec rails db:create
bundle exec rails db:migrate
  1. Start the Rails server:
  bundle exec rails server

Running Tests

To run the test suite, execute:

  bundle exec rspec

Simulate Rebilling

You need to have the rails server running on port 3000. To simulate the rebilling process, run the seeds creation with the following command:

  bundle exec rails db:seed

* To see how it works with old (active/inactive) subscriptions, you can run it several times

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published