social-experiments / EduOnEdge

Offline Content Access
GNU Affero General Public License v3.0
3 stars 0 forks source link

EduOnEdge

Offline Content Access

Pre-requiste

  1. Install az as per instrcution here https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest

Instructions on publishing

Instructions on developing on Ubuntu

Instructions on configuring and running CapDeviceManager on a linux machine

Downloads

  1. Download dotnet SDK for Ubuntu 18.04 using these commands
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1 

More information about the installation is included here

  1. Download monodevelop in order to build the project here

  2. Follow the manual install instructions for Azure CLI displayed here

Instructions To Run Project from MonoDevelop

1.Open the Project on MonoDevelop and configure build option

  1. Run the project, if the browser doesn't open up, manually go to localhost:5000 or replace localhost with machine's IP address

Running the project from the terminal

  1. Open up the terminal and navigate to the CapDeviceManager folder

  2. Run the following commands:

dotnet restore

dotnet msbuild CapDeviceManager.sln
  1. Navigate to the CapDeviceManager.csproj and run following command to run project
dotnet run CapDeviceManager.csproj
  1. Open up https://localhost:5000 on your machine or replace localhost with machine's IP address

    Prerequite

    Please install azure CLI on machine where you are trying this project. Make sure az verion is 2.1.* and above, and add extension with command: az extension add --name azure-cli-iot-ext