CPSC 449 - Fall 2023 - Project 3 - Polyglot Persistence and Functional Partitioning
Project members:
-
Set working directory as this project's directory
-
Create and enter virtual environment
python3.10 -m venv .venv source .venv/bin/activate
-
Install requirements
pip install -r requirements.txt
-
Configure Redis CLI
You will need to have Redis CLI installed and running on the system at port 6379. You can verify this by running the following command:
redis-cli ping
Otherwise install redis:
sudo apt update sudo apt install --yes redis
-
Configure AWS CLI
You will need to follow the instructions on the Long-term credentials tab of Configuring using AWS CLI commands to configure dummy credentials for DynamoDB local.
-
Start API
foreman start --formation users-primary=1,users-secondary=1,users-tertiary=1,enrollment=3,krakend=1,amazon-dynamodb-local=1
-
Initialize databases
If databases haven't been initialized yet (ie. this is the first run), run the following after running one of the commands above, which activates the LiteFS replication service:
./bin/init.sh
You may also wish to run this in development to reset the database, especially if a schema has been changed.