hepu / contacts-importer

Ruby on Rails app that imports contacts through CSVs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contacts Importer

Ruby on Rails app that allows the user to sign up and upload CSV files that import contacts.

This app makes use of ActiveRecord Encryption, so it's necessary to have a config/master.key (provided externally)

Getting Started

Requirements

  • ruby 3.1.2
  • config/master.key (Provided externally)

Installation

With Docker (recommended)

  • If it's the first time running the project, execute: sh ./docker/initialize.sh
  • Then only start the container when needed with: docker compose up

Standalone

Running

With Docker (recommended)

  • docker compose up

Standalone

  • You can use foreman: foreman start -f Procfile.dev

Or:

  • To run the web server, run: rails s
  • To run the mail server, run the following on another tab: mailhog
  • To run sidekiq, execute: sidekiq

Running tests

  • Execute: rspec spec

Testing the App

Default User

CSVs to upload

About

Ruby on Rails app that imports contacts through CSVs


Languages

Language:Ruby 69.2%Language:HTML 24.7%Language:JavaScript 3.5%Language:SCSS 1.0%Language:Shell 1.0%Language:Dockerfile 0.6%Language:Procfile 0.0%