Analysim is a free online web platform enabling researchers to analyze and share data by providing interactive visualizations, and collaborate with others. The open platform is specialized for working with high-dimensional data sets such as those constructed via computational modeling. Analysim also allows you to run custom analysis on any type of data.
Clone the Analysim Repository from GitHub so that you have the project locally.
git clone https://github.com/soft-eng-practicum/AnalySim.git
- Visual Studio or ASP.Net 6.0 command-line interface (CLI) (Required)
- Visual Studio Code or other editor
- Postman for testing API calls
- Docker for testing deployment
- Azure Data Studio or use online Azure Portal for browsing Azure Blob Storage
After you have cloned the Analysim repository on your local machine,
use the terminal to navigate to the
AnalySim\src\Analysim.Web\ClientApp
folder and run the following
command.
npm install
You will need to get the appsettings.json
file(s) from the project
admins in order to connect to the database. Put these files under the
src/Analysim.Web
folder.
Step 1:
In Visual Studio Code (or other editor), open up the Analysim
project folder. Using a terminal, navigate to
src\Analysim.Web\ClientApp
and run the following command (also works
from Command Line):
ng serve -o
Step 2:
Next, in Visual Studio, open up the AnalySim.sln
file. Click on
the run to start the project. Once you have completed both steps,
your project should be up and running!
Alternatively, without Visual Studio, you use .Net CLI from command
line by first navigating into the src\Analysim.Web
folder:
dotnet run
The overall process of deployment is explained in the tutorial video on deploying ASP.Net on Heroku using Docker.
- Download Docker Desktop
- Download Heroku CLI
- Enable Docker Support
Note: Prepend sudo
before each docker
and heroku
(except dotnet
) command on Mac/Linux.
- Publish Analysim.Web to the local folder (keep default location for folder), which can also be done on the command line:
dotnet publish --configuration Release
- Create the Docker image by running the following in the base project folder (e.g.
Analysim/
) :docker build -t analysim-dev -f deploy/Dockerfile .
- Test image locally, by running it:
You can test by opening a browser to http://localhost:80 (not https).
docker run -it -p 127.0.0.1:80:80/tcp analysim-dev
Note: Prepend sudo
before each docker
and heroku
(except dotnet
) command on Mac/Linux.
Run the following commands in terminal to update Heroku deployment (more info):
- Login to Heroku and container service (if using
sudo
, you may need to copy-paste into browser):heroku login heroku container:login
- Tag the image name on Heroku's container registry:
docker tag analysim-dev registry.heroku.com/analysim-dev docker push registry.heroku.com/analysim-dev
- Change to the
deploy/
folder and re-build image using Heroku CLI:cd deploy heroku container:push web -a analysim-dev --context-path=.. heroku container:release web -a analysim-dev