Tinder for drinks
psql postgres
CREATE DATABASE mixr;
npm install -g sequelize-cli
install cli globalcd server/database
Go to database directorynode models/index.js
Create actual tables
cd helper/
Go to helper directorynode buildIngredient.js
Populate ingredients tablenode builddrinks.js
Populate drinks table with data from drinks.json- In
builddrinks.js
Change7 const pathName = path.join(__dirname, './drinks.json');
to read fromdrinks2.json
node builddrinks.js
again: Populate drinks table with data from drinks2.json- Repeat for drinks3.son and drinks4.json
node bulkJoin.js
Populate the drinkingredient table with data from drinks.json- Change file path in bulkJoin.js to the next drinks.json file like above, repeat for all files
npm run react
Build bundle.js with webpack and watch filesnpm start
start server on port 3000
DB_USERNAME
and DB_PASSWORD
for your database