/piggybank-api

Piggybank is an API of a fully fledged money saving solution. Made for educational purposes.

Primary LanguageRuby

Ruby

Piggybank-API

image

Piggybank is a personal project to create a habit of saving money. You can specify how much you will save in each time period and have the application asynchronously save this value for you each time this period passes.

While the interface has not been finished, a mock-up interface was made by Clarissa Vasconcelos and is acessible here: Figma

Getting Started

Windows

  1. Install WSL
  2. Install Ubuntu
  3. Install RVM
  4. Install Ruby 2.5.1 through RVM
  5. Install Postgres with sudo apt-get -y install postgresql postgresql-contrib libpq-dev
  6. Set up Postgres user as postgres, password postgres
su -l postgres
psql

\password postgres
  1. Install bundler with gem install bundler
  2. Bundle install with bundle
  3. Run rails db:create
  4. Run rails db:migrate && rails db:migrate RAILS_ENV=test
  5. Copy .env.sample and rename it to .env
  6. Run test suite with bundle exec guard and press Enter

Bonus: If using VSCODE use the WSL Remote extension to run the console directly in WSL

Linux

  1. Install RVM
  2. Install Ruby 2.5.1 through RVM
  3. Install Postgres with sudo apt-get -y install postgresql postgresql-contrib libpq-dev
  4. Set up Postgres user as postgres, password postgres
su -l postgres
psql

\password postgres
  1. Install bundler with gem install bundler
  2. Bundle install with bundle
  3. Run rails db:create
  4. Run rails db:migrate && rails db:migrate RAILS_ENV=test
  5. Copy .env.sample and rename it to .env
  6. Run test suite with bundle exec guard and press Enter