Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1000 Bytes

README.md

File metadata and controls

49 lines (36 loc) · 1000 Bytes

Moar Sugar Example App

Stuff to make Java sweet!

Setup

The setup for this project has been tested on MacOS 10.14.3 (18D109), OpenJDK 11.0.2, MySQL 8.0.12, Node v11.7.0, and NPM 6.8.0.

Step 1, Install Moar CLI

npm install -g moar-cli

Step 2, Clone and initialize example project

cd ~/moar-workspace
git clone [email protected]:moar-stuff/moar-sugar-example
cd moar-sugar-example
moar-init

To run all the examples, you need a mysql database.

echo "CREATE DATABASE moar_sugar_example_db;
CREATE USER 'moar_example_user'@'localhost' IDENTIFIED BY 'moar_example_password';
GRANT ALL PRIVILEGES ON moar_sugar_example_db.* TO 'moar_example_user'@'localhost';" \
| mysql -u root

We also need a config file.

echo '{
host: "localhost:3306"
db: moar_sugar_example_db
user: moar_example_user
password: moar_example_password
}' | moar-json > moar_example_app_config.json

With the database and config file you can run the sample.

./run.sh