Example Book Store App for the Meadow and Meadow Endpoints Talk.
I recommend using docker!
I recommend calling this bookstore
so everything works as-is.
You need to make sure the IP, port, user and password are all correct.
From the api/
folder, run npm install
. Make sure to user node version 8.
You can run Build-Database.sh
from the api/
folder and everything will generate properly
From your favorite MySQL client, connect to the server you are already running on your computer. Load up the file stricture generated in api/model/sql_create/BookStore-CreateDatabase.mysql.sql
and execute it against your database. This will create all the empty tables you need.
If everything went well so far, you should be able to go to the api
folder and run npm start
.
From a terminal, navigate to the api/
folder and run node import-books.js
A bunch of spam will happen on the terminal as books, authors and their connections are loaded.
Point a browser at http://127.0.0.1:8080/
What a well-stocked bookstore!