Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 683 Bytes

readme.md

File metadata and controls

28 lines (16 loc) · 683 Bytes

How to setup

  1. Install all node modules with yarn install

  2. Update database connections in database.json

  3. Log into mysql client with mysql -u root

  4. Create a new database user with the following commands

CREATE USER 'foo'@'%' IDENTIFIED WITH mysql_native_password BY 'bar';
grant all privileges on *.* to 'foo'@'%';

FLUSH PRIVILEGES;
  1. Create a new database named organic

  2. Exit mysql client (or open a new terminal)

  3. Install nodemon with npm install -g nodemon

  4. Add permission to run ./db-migrate.sh with `chmod +x ./db-migrate.sh

  5. Run all migrations with ./db-migrate.sh up

  6. Add in dummy categories, brands and products as needed.