This Rails application manages citizen data, including personal details, addresses, and photos. Features include phone number and CNS number validations, address autofill using an external API, and image storage with AWS S3. For more details, please check the link.
- Ruby 3.2.2
- Rails 7.1.2
- PostgreSQL for the database.
- Set up AWS S3 for image storage.
- Configure an external API for address autofill.
- Run
rails db:create
andrails db:migrate
. - Seed data using
rails db:seed
.
- Run tests with
rspec
.
- AWS S3 for image storage.
- Zipcodebase API for address autofill.
- Just push the code to the
main
branch and the magic happens.
- Custom validations for phone numbers and CNS numbers.
- CORS configuration details for AWS S3.
- Error handling for image uploads and external API responses.