A Ruby on Rails application for managing customer information using PostgreSQL on AWS RDS.
- Ruby on Rails
- PostgreSQL
- AWS RDS
- Docker (for pgAdmin as connection tool to the RDS table, my case customer_info_app_development, check database name for development below)
- Clone the repository:
git clone https://github.com/BubeeKilla/customer_info_app.git
cd customer_info_app
- Install dependencies:
bundle install
- Configure your database in database.yml file:
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: <%= ENV['DB_USERNAME'] %> <<here use ur env variables, I have used mine from .env file(app root directory), or setupt them globally on your machine>>
password: <%= ENV['DB_PASSWORD'] %> <<here use ur env variables, I have used mine from .env file(app root directory), or setupt them globally on your machine>>
host: <%= ENV['DB_HOST'] %> <<here use ur env variables, I have used mine from .env file(app root directory), or setupt them globally on your machine>>
port: 5432
development:
<<: *default
database: customer_info_app_development
test:
<<: *default
database: customer_info_app_test
production:
<<: *default
database: customer_info_app_production
- Create and migrate the database:
rails db:create
rails db:migrate
- Start the Rails server:
rails server
- Visit the homepage.
- Fill the spaces with the info like Name..etc.
- Submit
- This project is licensed under the MIT License - see the LICENSE file for details.