Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.19 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.19 KB

Web integration example

This repository shows how to easily integrate optimization into a frontend application via Opvious.

Folder structure

The code in this repository is divided into two folders:

For most use-cases, we recommend using separate repositories for each of the above folders when moving beyond the prototyping stage. If you already have an existing frontend application, simply extend it correspondingly.

Quickstart

  1. Create an Opvious API token and store it as OPVIOUS_TOKEN environment variable

  2. Build the model and register it

cd specification
poetry install --all-extras
poetry run poe register
  1. Run the frontend application
cd app
npm i
npm run dev

That's it - open the link printed by the last command to start optimizing!