A proof of concept for a pub crawl optimizer. The user can input a list of pubs and the app will calculate the shortest path between all of them.
The app is configured using environment variables. The following variables are available:
ORS_TOKEN
: OpenRouteService API token (Required)DATABASE_URL
: SQLite database URL:memory:
file:./database.sqlite
DATABASE_URL=file:./database.sqlite
ORS_TOKEN=your_token_here
Once you've created a project and installed dependencies with npm install
(or
pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.
npm run build
node build
You can use docker to build the project as well. The following command will build the project and run it in a container.
docker build -t pub-crawl-optimizer .
# Run the container and delete it when it stops
docker run --it -v ./local.db --env-file=.env.local -p 3000:3000 pub-crawl-optimizer