-
Install all node modules with
yarn install
-
Update database connections in
database.json
-
Log into mysql client with
mysql -u root
-
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;
-
Create a new database named
organic
-
Exit mysql client (or open a new terminal)
-
Install nodemon with
npm install -g nodemon
-
Add permission to run ./db-migrate.sh with `chmod +x ./db-migrate.sh
-
Run all migrations with
./db-migrate.sh up
-
Add in dummy categories, brands and products as needed.