Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.

This is where the source code for all internal and external facing artifacts get maintained and built.

Notifications You must be signed in to change notification settings

secureailabs/Development_Deprecated

Repository files navigation

.github/workflows/build.yml alt text

Development

This is where the source code for all internal and external facing artifacts get maintained and built.

Building for source

Open a terminal and clone the git repository:

$ git clone https://github.com/secureailabs/Development.git

Generate executables in the following directories using make:

Directory Executable
Development/Milestone2/InternalTools/DatabaseTools/ DatabaseTools
Development/Milestone2/WebService/DatabaseGateway/ DatabaseGateway
Development/Milestone2/WebService/RestApiPortal/ RestApiPortal
Development/Milestone2/EndPointTools/RestPortalTester/ RestPortalTester

Installing and Configuring MongoDB

Run install.sh to install and configure MongoDB Community Edition, MongoDB C Driver, and MongoDB C++ Driver on Ubuntu 20.04.

Running the Script

Open a terminal and add install.sh as an executable:

sudo chmod +x install.sh

Run the script:

./install.sh

Testing

Change working directory to Binary:

$ cd Development/Milestone2/Binary

Run the database tool (DatabaseTools) and add user(s) to the database:

$ ./DatabaseTools

Start the RestApiPortal server (in Milestone5 the options --DatabaseServerIp and --DatabaseServerPort can be provided to specify a remote database gateway):

$ ./RestApiPortal

Start the DatabaseGateway server:

$ ./DatabaseGateway

Run the interactive client (RestPortalTester) to test login, event registration, and event enumeration:

$ ./RestPortalTester

You can also use Postman to make Http requests to the RestApiPortal. An example request is as following:

If the login is successful, the RestApiPortal will return an Eosb otherwise it will return an error code.

Once done, stop the servers.

About

This is where the source code for all internal and external facing artifacts get maintained and built.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8