Permalink
Browse files

Update setup instructions

  • Loading branch information...
mikirockerful committed Jul 30, 2018
1 parent 5cb059e commit e7d2e2e4e07530e64045dc36f2413424e6289844
Showing with 10 additions and 6 deletions.
  1. +1 −2 INSTALL.sh
  2. +9 −4 README.md
@@ -62,6 +62,5 @@ else
fi

echo "[INFO] Setup complete"
echo "[INFO] If you haven't, make sure to initialize the database by running the following scripts:"
echo " sql/starter/xcolab-schema.sql"
echo "[INFO] If you haven't, make sure to compile (mvn compile) and then initialize the database by running the following script:"
echo " sql/starter/xcolab-data.sql"
@@ -18,15 +18,20 @@ The xCoLab is a generic version of the [Climate CoLab](https://climatecolab.org)
You can set up a copy of the xCoLab like this:

```bash
# Create and initialize database
# Create database
mysql -u root -p -e 'CREATE DATABASE xcolab CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
cat sql/starter/xcolab-schema.sql | mysql -u root -p xcolab
cat sql/starter/xcolab-data.sql | mysql -u root -p xcolab
# Create the file conf/application.properties with your database credentials
# (use conf/sample-application.properties file as a guide)
# Check prerequesites and set up configuration file
./INSTALL.sh
# Update the ~/.xcolab.application.properties file with your database credentials
# Compile the sources, defining database schema
./mvnw compile
# Populate database
cat sql/starter/xcolab-data.sql | mysql -u root -p xcolab
# Run the xCoLab:
./RUN.sh

0 comments on commit e7d2e2e

Please sign in to comment.