https://github.com/alphabetsalphabets/distributed-ordering-system
Assignment for the distributed computing module in Asia Pacific University.
https://github.com/alphabetsalphabets/distributed-ordering-system
Last synced: 8 months ago
JSON representation
Assignment for the distributed computing module in Asia Pacific University.
- Host: GitHub
- URL: https://github.com/alphabetsalphabets/distributed-ordering-system
- Owner: AlphabetsAlphabets
- Created: 2025-03-31T08:08:00.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-04-15T10:32:26.000Z (8 months ago)
- Last Synced: 2025-04-15T11:39:52.757Z (8 months ago)
- Language: Java
- Size: 111 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DCOMS assignment
# Pre-requisites
1. Install Apache Maven.
2. Install Postgresql.
3. Auto create required tables.
# Configuring Maven
Install all dependecies:
```
mvn clean install
```
# Configuring postgressql
1. Make sure that the postgres server is running.
2. Create a location for the database to be stored in.
3. Create a user account for the postgres server.
4. Give the newly created user account `CREATEDB` access.
Make sure to use the `postgres` user to start the `pgql` command.
```
sudo -u postgres psql
```
Then items 3 and 4 can be done with these two commands:
```
CREATE DATABASE mydb;
CREATE ROLE star WITH LOGIN PASSWORD 'password';
ALTER ROLE star CREATEDB;
```
3. Create a database named `database`. The application expects that database to exist.
```
createdb database
```
# Auto create required tables
Please run the code in `CreateDB.java` before you start the demo using `App.java`. Otherwise, the program will fail as the expected tables are unavailable.