The purpose of the first sprint was to create a bangazon api. This api allows access to the company's inventory/internal database.
These instructions will get you a copy of our API up and running on your local machine for development and testing purposes.
To run this api, you will need three gems:
'rails', '~> 5.1.4'
'sqlite3'
'rack-cors', '>= 1.0.2'
These will be installed once you run bundle install.
- For windows users, you will need to install an additional gem:
gem 'wdm', '>= 0.1.0'
How to run the api:
- Fork the repo.
- Open it in terminal and CD into the directory
- Clone repo
- Run bundle install.
- Run rails db:migrate.
- Run rails server.
- Go to schema.rb and find path to add dummy data (this should be appended to the localhost url - ex: localhost:3000/orders).
To view all endpoints, click here!
- Go to Postman
- Select POST
- URL is localhost:3000/customers
- Click body, then raw, JSON
- Paste in the below block into the body of the request:
{
"customer": {
"first_name": "Lee",
"last_name": "Milton",
"stale": false,
"last_date_active": "10-11-2017",
"active": true
}
}
- Click send
If you feel the need to contribute to this project, follow the steps below:
- Go to the repository (https://github.com/Puddlemere-United/sprint-1-api).
- Fork the repository to your github account.
- Clone the repository to your local directory.
- Finally follow the "Installation" steps above to get the API up and running.
- 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, Jordan Berghofer, Tyler Barnett, Nora Moser
- Thank you to Casey Dailey and Jisie David