Developer Guide || Local Development Web Server - SVF-tools/WebSVF GitHub Wiki

Running a Local Development Web Server

To debug code and run tests, it is often useful to have a local HTTP server. For the purpose of further deploying the project on AWS, we have made available a local web server with a dockerized code-server.

  1. Generate a local Docker Image a. Build from Dockerfile in the root directory
    docker build -t winoooops/websvf-docker . 
    
    b. Download from DockerHub
    sudo docker pull winoooops/websvf-docker
    
  2. Verify the Docker Image exists locally
    # You should see the local repository named winoooops/websvf-docker .
    docker images -a 
    
  3. To start the web server, run
    docker run -p 8080:8080 --name websvf winoooops/websvf-docker
    
  4. To access the local server, enter the following URL into your web browser:
    http://0.0.0.0:8080