Generic MSW will perform different basic tasks within the realm of ship reporting and information exchange. The MSW is not customized to any particular country, application or process, but will provide basic services to support clearence processes within any country that seeks to meet the international obligations.
These instructions will get you a copy of the project (client and server) up and running on your local Windows machine for development and testing purposes.
Make sure to clone the repository on your computer. Then download and install the following
Use the command line interface (CLI) to verify the installations above
npm -version
choco -v
Use the command line interface (CLI) with administrator rights and install the following:
choco install nodejs
npm install -g @angular/cli
choco install dotnetcore-sdk
Follow the guide below to install postgres on your machine.
Once completed and you have a server up and running, run the following script to create and populate your database
After running the script, copy the file named "appsettings.default.json" in your Server folder, paste it into the same location and rename the copy to "appsettings.json". Update the "appsettings.json" file with the correct connection string (Most likely localhost on first run), username and password. Example of appsettings.json:
{
"ConnectionStrings": {
"OpenSSN": "User ID=postgres;Host=localhost;Port=5432;Database=imomsw;keepalive=60;",
"UserDatabase": ""
}
}
Use the command line interface (CLI). Navigate to the client directory on your computer and setup the client'
cd <yourpath>\IMOMaritimeSingleWindow\Client
npm install
ng serve --host 0.0.0.0 --port 4201 --proxy-config proxy.config.json
Use the command line interface (CLI). Navigate to the server directory on your computer and setup the server'
cd ..\Server
dotnet build
dotnet watch run
http://localhost:4201
Note;