Skip to content

ammark100/morphocut-server

 
 

Repository files navigation

MorphoCut Server

This repository contains the MorphoCut web application that serves as a frontend for the MorphoCut library.

Running the development version

During development, Flask and Vue run natively on the host. PostgreSQL and Redis run in their respective Docker containers.

Prerequisites

  • To run PostgreSQL and Redis, you need Docker Compose.

  • To run the Python application, create a Conda environment by running the following in the repository root:

    conda env create -f environment.yml # Create a prespecified environment
  • To run the Vue application, you need to have NodeJS installed. Then install the required packages:

    /$ cd morphocut_server/frontend
    /morphocut_server/frontend/$ npm install # Install all the required packages

Run the application

  • Start PostgreSQL and Redis. The services will run as long as the window is not closed.

    /$ docker-compose up postgres redis # Start the PostgreSQL and Redis containers exposing the relevant ports
  • In a new window, start Flask:

    /$ source activate_dev # Activate the environment and set appropriate environment variables
    /$ flask run # Run the flask application, reloading automatically as necessary.
    ...
    * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
    ...
  • In a third window, start Vue:

    /$ cd morphocut_server/frontend
    /morphocut_server/frontend/$ npm run serve # Run the Vue frontend, reloading automatically as necessary.
    ...
      App running at:
      - Local:   http://localhost:8080/frontend/ 
    ...

    Open the link to access the application.

License

This project is licensed under the terms of the MIT license.

About

The MorphoCut web application

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 68.2%
  • Vue 28.2%
  • JavaScript 2.0%
  • Shell 0.7%
  • Dockerfile 0.5%
  • HTML 0.2%
  • Mako 0.2%