Git Product home page Git Product logo

cello-v2-webapp's Introduction

Build Status

1. About

This is a webapp designed to support the Cello v2 genetic circuit design software. In the future this webapp will run on cellocad.org, meaning installation will be unnecessary for most users.

2. Installation

Options

If you wish to create your own instance of the webapp, you have a few options.

  1. Get the Docker image from Docker hub and run it.
  2. Install the runtime dependencies, download a JAR file from the releases page of this repository, run the JAR file.
  3. Install the developer dependencies, clone the contents of this repository, and build the webapp from source.

Each of these procedures is described below.

(Option 1) Docker

Download and install Docker.

Pull and run the image:

docker run --rm -p 8080:8080 -v /local/path/to/db:/data/db -v /local/path/to/users:/root/users -v /local/path/to/resources:/root/resources -t cidarlab/cello-webapp

Note the two /local/path/to directories. You will need to replace these with folders on your machine of your choosing. You can omit these -v clauses, but then the user database and projects storage will be destroyed when you stop the container.

Navigate to http://localhost:8080 to use.

(Option 2) Prepackaged JAR file

Runtime dependencies

Usage

Ensure that MongoDB is running, and then run the JAR file with:

java -jar <file>

(Option 3) Building from source

Developer dependencies

Usage

Clone the repository.

git clone --recurse-submodules https://github.com/CIDARLAB/Cello-v2-webapp.git

Build.

cd Cello-v2-webapp/cello-webapp
mvn clean install

Run.

mvn spring-boot:run

3. Development

Code style

This project uses the Maven Checkstyle Plugin with a slightly relaxed version of google_checks.xml to enforce code style. If the code does not match the style requirements, maven will fail during the validate phase. If using Eclipse, you can use the Eclipse Checkstyle Plugin to show warnings when code does not meet the style requirements. You can also automatically format written code with the google-java-format, which can be used from the command line, or as a plugin in Eclipse or JetBrains IDEs.

Deployment

Docker Hub

  • Docker images are built and deployed automatically via Travis CI. See .travis.yml.

  • Manual:

    mvn docker:build
    mvn docker:push
    

Debug a running webapp in Eclipse

Navigate to Application.java in Eclipse, right-click on the main method, choose Debug As > Java Application.

Troubleshooting

If you want to clear or edit the database when running from Docker, invoke docker with the -i switch. Then enter the running container: docker exec -it [container-id] bash. You can find the container id from docker ps. Now invoke the mongo shell with mongo, and manipulate the database by hand.

cello-v2-webapp's People

Contributors

0x174 avatar tim-tx avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

cello-v2-webapp's Issues

JSON conversion error on local installations when installed with Docker

Full error message: JSON conversion problem: (was java.lang.NullPointerException); nested exception is com.fasterxml.jackson.databind.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: org.cellocad.v2.webapp.specification.Specification["settings"])

The version on v2.cellocad.org seems to not have this issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.