Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add required startup files and fix issues #63

Merged
merged 14 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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