This is a sample application for importing Users by uploading a CSV file. Each user must have a name and a strong password. We show either success or an error message in response to each row in the CSV.
- Ruby version - ruby-2.7.1
- Rails version - 6.1.4.1
- Database - PostgreSQL
Steps to run the application -
-
Clone the repo
git clone https://github.com/nverrma/user_import.git
-
Move into the directory
cd import_users
-
Run bundle
bundle install
-
Set up database
rails db:create && rails db:migrate
-
Run the server
rails s
-
Check functionality
Open the browser and go to
http://localhost:3000
Upload a CSV file (sample file)