Please make sure ESLint extension is installed before commiting/opening a pull request.
Clone this repo
Run in terminal: git clone https://github.com/RadiationChallengeProjectCAST/RadDataStorage.git
Run in terminal: npm install
Create .env
file with correct enviroment varibles set
NODE_ENV = development
POSTGRES_DB = radiationdb
POSTGRES_USER = raddbaccess
POSTGRES_PASSWORD = INSERT_POSTGRES_PASSWORD_HERE
Create tokens.json
with format
{
"teams": [
{
"teamId": 0,
"teamName": "TEST_GROUP_IGNORE_RESULTS",
"token": "TEST_TOKEN_FOR_TEST_TOKEN",
"test": true
},
{
"teamId": 1,
"teamName": "TEST_GROUP_IGNORE_RESULTS_2",
"token": "TEST_TOKEN_FOR_TEST_TOKEN_2",
"test": true
},
...
]
}
Create replication.json
with format
[
{
"host": "HOST_IP"
}
...
]
Install the following software
Create a role and database using commands in SQLSpecification.sql. Make sure to change the password.
Launch application with node index.js
Install Docker
Run in terminal docker-compose up
to start docker containers.
Make sure to allow through firewall.