# Loopback csv import example
This boilerplate aims to demonstrate on a simple example how to make a transactional csv import using postgreSQL. The whole process is described in this article
To import files directly on the database and other cool stuff on Loopback, check also jdrouet's github.
Install nodejs 0.12 and postgres.
Create a database in postgres:
createdb test
Install libicu-dev:
On Ubuntu:
sudo apt-get install libicu-dev
On MacOS with brew:
brew install icu4c
brew link icu4c --force
git clone [email protected]:cRicateau/loopback-csv-import.git
Set your datasource according to your database.
Start postresSQL then:
npm install
You can access the example on your localhost on port 3000: http://localhost:3000/
Try uploading the data.success.csv and the data.error.csv files.
npm run client:watch
npm run server:watch