Users can sign-up using company emails(only domains allowed by admin eg: if company1.com, company2.com are the allowed domains then users can only sign-up with those domains only). Users can create groups to manage contacts with support to alter the status of group. User can create any number of contacts with in group.
-
make sure
postgresqlis insalled in your system and running. -
Run bundler
bundle install. -
create
database.ymlinconfigfolder enter your credentials and database configuration.- sample configuration
default: &default adapter: postgresql encoding: unicode username: db_username password: db_password pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> development: <<: *default database: contact-management_development test: <<: *default database: contact-management_test production: <<: *default database: contact-management_production username: contact-management password: <%= ENV['CONTACT-MANAGEMENT_DATABASE_PASSWORD'] %>
-
Run
rails db:createorrake db:createto create database. -
Run
rails db:migrateorrake db:migrateto complete any pending migrations. -
Run
rails db:seedorrake db:seedto seed the database with a sample admin user in order to create allowed domains.
- Rails
5.2.1