Skip to content

Commit

Permalink
Merge pull request #63 from DivyaPremanantha/main
Browse files Browse the repository at this point in the history
  • Loading branch information
SachiniSiriwardene authored Dec 3, 2024
2 parents da775f0 + c51c6be commit 87b6671
Show file tree
Hide file tree
Showing 5 changed files with 416 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Follow the steps given in InstallationGuide.md, to create database.

3. Execute the data-dump.sql script in the artifacts folder to populate the database with mock data.
```bash
psql -q -U "{db_username}" -d “test”_dump -h "{hostname}" -p "{port}" -f {path to data-dump.sql}
psql -q -U "{db_username}" -d "{db_name}" -h "{hostname}" -p "{port}" -f "{path to data-dump.sql}"
```

4. Execute the startup script on the root, based on the OS:
Expand Down
397 changes: 397 additions & 0 deletions artifacts/data-dump.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"port": 3000,
"pathToContent": "../src/",
"mode": "prooduction",
"mode": "production",
"db": {
"username": "postgres",
"password": "postgres",
Expand Down
3 changes: 3 additions & 0 deletions startup.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off
echo Starting the devportal-webapp...
exec devportal-webapp-win.exe
14 changes: 14 additions & 0 deletions startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
echo "Starting the devportal-webapp..."

if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
chmod +x ./devportal-webapp-macos
exec ./devportal-webapp-macos
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
# Linux
chmod +x ./devportal-webapp-linux
exec ./devportal-webapp-linux
else
echo "Unsupported operating system: $OSTYPE"
exit 1
fi

0 comments on commit 87b6671

Please sign in to comment.