Giter VIP home page Giter VIP logo

mirmachine's Introduction

MirMachine Webapp

This is a webapp built for serving an easy-to-use UI for the MirMachine lookup/annotation tool (see MirMachine)

Running Django

Setting up conda

Firstly make sure you have the correct conda installed on your computer.

To install the project run conda env create -n mirmachine -f environment.yml in the root folder.
Then run conda activate mirmachine to spawn the virtual environment.
Now you are ready to start Django.
P.S. if you want to exit the environment type conda deactivate

Running the Django server

In the virtual environment you can run the following:

python manage.py migrate

Run this script in the root folder of the project.
This refreshes Django with potential changes that may be present in the backend. This should be done after the initial download, and after there are changes made in the backend.

python manage.py runserver

Use this script to run the server.
Make sure you build the frontend before running the server.

Building the frontend

Navigate to lookupService/frontend before using the following scripts.
If you require hot reloading we recommend using a separate shell to build the frontend.

Installing frontend

Run npm install before running for the first time to install the necessary packages and set up the environment.

npm run dev

Runs the app in the development mode.
Enables hot reloading, making it the best choice when making changes to the frontend.
Run the Django server and open http://localhost:8000 to view it in the browser.

The page will update if you make edits. Simply reload to display changes.

npm run build

Builds the app for production to the lookupService/static/frontend folder.
Webpack bundles the project and optimizes it for production.

mirmachine's People

Contributors

selfjell avatar sinanugur avatar bastianfromm avatar

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.