Skip to content

Sample code for integrating optimization into a website

License

Notifications You must be signed in to change notification settings

opvious/web-integration-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Sample code for integrating optimization into a website

Resources

License

Stars

Watchers

Forks