Tinder for drinks
psql postgresCREATE DATABASE mixr;
npm install -g sequelize-cliinstall cli globalcd server/databaseGo to database directorynode models/index.jsCreate actual tables
cd helper/Go to helper directorynode buildIngredient.jsPopulate ingredients tablenode builddrinks.jsPopulate drinks table with data from drinks.json- In
builddrinks.jsChange7 const pathName = path.join(__dirname, './drinks.json');to read fromdrinks2.json node builddrinks.jsagain: Populate drinks table with data from drinks2.json- Repeat for drinks3.son and drinks4.json
node bulkJoin.jsPopulate 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 reactBuild bundle.js with webpack and watch filesnpm startstart server on port 3000
DB_USERNAME and DB_PASSWORD for your database