-
Notifications
You must be signed in to change notification settings - Fork 13
Development Environment Setup
POGS is written in Java. You will need to install JDK 8 if you don't already have it, you can get it here.
POGS uses Redis as an in-memory data cache and it needs to be running in order for the platform to run.
sudo apt install redis-serverOnce it's installed, run it.
redis-serverIn order to run the XCoLab locally, you will need to install MySQL. If you're on macOS with homebrew, see below for instructions, otherwise see MySQL's getting started guide.
-
Install MySQL
brew install mysql
1.1 Check version
### MySQL >= 8.0 mysqld --initialize-insecure --user=`whoami` --datadir=/usr/local/var/mysql --tmpdir=/tmp ### MySQL >= 5.6 && < 8 mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
-
Make sure MySQL is running
# Install the brew services utility brew tap homebrew/services # now you can start/stop/restart mysql easily (persists across restarts) brew services start mysql
If you are running Linux or Mac, make sure that you can connect to the database using your current user without superuser privileges (without using sudo).
-
Clone the POGS GitHub repository: https://github.com/CCI-MIT/POGS.
-
Create a database in mySQL:
CREATE SCHEMA pogs; -
Open file application-database-config.yml Adjust the username and password to the ones you configured during the mysql database installation
username: DB_USERNAME_HERE password: DB_PASSWORD_HERE -
Compile the sources. This will also build the database schema. From the project root directory, run:
mvn clean compile package install
Instead of building and running the servers from the command line, we recommend you use an IDE. We use IntelliJ IDEA, so here's a guide how to work with it: