A simple Rails application where you can search, view, and edit data. Data is retrieved from an API before the application starts with the import service. After making sure that the necessary configs are loaded and the server is defined.
- Ruby (ruby-3.2.2)
- Rails (version 7.1.3 >= 7.1.3.3)
- Postgresql
- required ENV's:
IMPORT_EXTERNAL_USERS_INFO_BASE_URL
IMPORT_EXTERNAL_USERS_PHOTO_BASE_URL
- Clone the repository
- Install dependencies:
bundle install
- Setup the database:
rails db:create && rails db:migrate
- Export the env's:
export IMPORT_EXTERNAL_USERS_INFO_BASE_URL=https://jsonplaceholder.typicode.com
export IMPORT_EXTERNAL_USERS_PHOTO_BASE_URL=https://picsum.photos
- Precompile Assets:
rails assets:precompile
- Run the Rails server:
bin/dev