This Rails app allows users to upload CSV files containing user data and create users from the file's content.
- Upload CSV files containing user data
- Validates user data and shows errors in case of invalid data
- Creates valid users and shows the results in a table
- Handles empty files and files with invalid formats
- Ruby 3.0.2
- Rails 6.1.4
- PostgreSQL 13.3
- Clone this repository:
git clone https://github.com/edugonch/user-upload-app.git
cd user-upload-app
- Install dependencies:
bundle install
- Set up the database:
rails db:create db:migrate
- Start the app:
rails server
- Open http://localhost:3000/ in your browser and start uploading CSV files.
- Access the app's root URL http://localhost:3000/.
- Click on the "Choose file" button and select a CSV file containing user data.
- Click on the "Import" button to upload the file and create users.
- If the file contains valid user data, the app will show a table with the results. If the file contains invalid data or has an invalid format, the app will show an error message.
The app is available as open source under the terms of the MIT License.