- Create a mySQL user, navigate to
config/keys.js
anddevloper/config/keys.js
, update the user information. - In mySQL create four tables,
products
,users
,dev
,transactions
. - This is how your database should look:
- Make sure to add the following descriptions to your table:
At this point we are pretty much setup with the database.
- Open up a terminal/command prompt in the project's directory.
- Type in
$ npm install
once done type in
$ npm run devloper-install
- Setup your stripes sandbox profile, copy the private and secret keys, head to
config/keys.js
anddevloper/config/keys.js
, and paste those in. - In your terminal/command prompt hit
$ npm start
If everything goes fine, on your browser navigate to localhost:5000
to buy books, and for admins navigate to localhost:8000
to add, update, delete books.