Backend and frontend code for the ORD search interface.
$ git clone git@github.com:open-reaction-database/ord-interface.git
$ cd ord-interface
$ pip install -e .
To build and launch the interface (available at http://localhost:5001
):
$ cd ord_interface
$ ./build_test_database.sh
$ docker build --file Dockerfile -t openreactiondatabase/ord-interface ..
$ docker compose up
To start a Flask server in development mode:
$ cd ord_interface
$ ./build_test_database.sh
# Start the database backend.
$ docker run -d -p 5432:5432 openreactiondatabase/ord-postgres:test
# Start the development server.
$ POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres FLASK_APP=interface.py FLASK_ENV=development python -m flask run
cd app
In the ./app
directory, you can run:
Install the necessary npm packages for the vue app.
Download https://github.com/epam/ketcher/releases/download/v2.5.1/ketcher-standalone-2.5.1.zip and extract the files into ./app/src/ketcher/
Runs the app in the development mode. Open http://localhost:8080 to view it in your browser. The vue app depends on the flask app api running on port 5000 (see the Development instructions for the flask app above)
The page will reload when you make changes. You may also see any lint errors in the console.
Builds the app for production to the dist
folder.\