These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Ruby
for installation guide, see the official Ruby download page.
In order to get this running on your system, just follow the below steps. Note that this program runs completely on the command line of your system.
- Clone down this repository, which will create a new directory for this project on your system
- Within the terminal, CD into this newly created directory
- Navigate to the
db
sub-directory - Run the following command to initialize the database
ruby database.rb
- The database now exists in the database_sprint2.sqlite file!
- Note: there is also a test initialization file that will create a test database for you if you'd like to run that as
well, they both exist within thisdb
directory.
- Within this project navigate into the
app
directory and, from the Terminal and inputruby main.rb
to launch the program. Below are the options you will be presented with:
*********************************************************
** Welcome to Bangazon! Command Line Ordering System **
*********************************************************
1. Create a customer account
2. Choose active customer
3. Create a payment option
4. Add product to shopping cart
5. Complete an order
6. See product popularity
7. Leave Bangazon!
>
- Follow the prompts on the screen to interact with the system.
- For an easy way to view the data within your database, it's suggested to use a tool such as DB Browser.
All tests for this application can be found in the test_model
and test_controller
directories to test the models and controllers respectively. For an example, to run tests for one of the controllers you would just navigate to the test_controller directory and run one of the files. For instance, you could run ruby customer_controller_test.rb
. The test will be run with Minitest
and results will display within the terminal.
- Ruby - The language used
- SQLite3 - Library used to build the database
- MiniTest - The testing suite used
To contribute to this project, follow the steps below:
- Go to the repository (https://github.com/Puddlemere-United/bangazon-terminal-interface).
- Fork the repository to your Github account.
- Clone the repository to your local directory.
- Follow the "Installation" steps above to get the API up and running.
- After your updates are made on a branch, create a pull request and fully fill out the PR template to let us know what has been updated.
- To report an issue, click the Issue tab within this repository on Github.
- Click 'New issue'
- Create an issue ticket clearly summarizing the issue in the Title field, and giving steps to recreate the issue in the 'Leave a comment' field.
- Please be as specific as possible in order to allow for quick fixes.
- LaKeshia Johnson - Personal Github
- Jordan Berghofer - Personal Github
- Nora Moser - Personal Github
- Clay Massie - Personal Github
- Tyler Barnett - Personal Github