Giter Club home page Giter Club logo

pizzatime's Introduction

It's Pizza Time! ๐Ÿ•

This application allows ordering Domino's pizzas from the command line. You can manage orders, payments, pizzas, and personal info. You can track your order. The application uses OpenAI to design a pizza using natural language.

Example usage

Get an API key from OpenAI

You will need to set up an account with OpenAI. Once you've created the key, it will be located here: https://platform.openai.com/api-keys. Copy it into your clipboard for the next step.

Set the environment variable

Windows

Use the following command to set the environment variable. Set the key in the Environment Variables settings dialog to make it permanent.

> set OPENAI_API_KEY=<your-key>

Linux

Use the following command to set the environment variable. Put this in your .bashrc or another initialization script to make it permanent.

$ export OPENAI_API_KEY='<your-key>'

Go to OpenAI for more information.

Run the application

Run the program with no arguments to get started:

$ pizza-time

You will be presented with a menu where you can create and manage orders, pizzas, payments, and personal info. You can also track your order and view your order history.

It's Pizza Time!๐Ÿ•
1. Place order
2. Manage orders
3. Manage pizzas
4. Manage payments
5. Edit personal info
6. Track order
7. View order history
q. Exit

Once you have created an order, you can place it with one of the following commands:

$ pizza-time --default-order
$ pizza-time --order <order-name>

Don't worry. You will be asked to confirm the order before it is placed.

You can track your order using the following command:

$ pizza-time --track

You can also place an order and track it immediately with the following commands:

$ pizza-time --default-order --track
$ pizza-time --order <order-name> --track

Additional commands:

$ pizza-time --version
$ pizza-time --help
$ pizza-time --debug

Build

Run the following in the solution directory:

$ dotnet build

Test

Run the following in the solution directory:

$ dotnet test

Install

Run the following in the solution directory on Linux:

$ ./install

pizzatime's People

Contributors

sholland1 avatar

Watchers

 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.