gta-mech-calc's People
gta-mech-calc's Issues
Clicking Service Increments Total Cost
When user clicks on a services button, it should increment the total price. (If you would like to add a separate increment and decrement button that's fine)
Testing: Total Price Decrement Method
Create Feature test for the decrement of the Total Price
Clicking Service Decrements Total Cost
When user clicks on a services button, it should decrement the total price. (If you would like to add a separate increment and decrement button that's fine)
Testing: Manual Input
Create Feature tests that increments and decrement the total cost when utilizing the manual input.
Research: Look into posting on Discord from website
https://discord.com/developers/docs/resources/channel#create-message
End Goal will have a report that can be sent from the site to discord with the services asked for and the total price. An example of the log look like the following
Customer Name: Tyrone Mone
Vehicle | [Make/Model]: DeClasse Mamba
Plate: UMJN7446
Upgrades Purchased: P&S Respray, Hood, Horn, Neon Color
Price Charged: $11500
SHOP: Russo Repair's
Testing: Services Table
Test for the following
- Test that a service can be created
- Test that once created, the service has a name and a cost.
Total Cost Helper Method
There should be a helper method in the Application Controller that returns the current total cost. If you want to make a PORO instead that is also fine.
Create Basic home page
Route should be a get to home#index
Main page should have H1 that says CityLifeRP Mech Calculator
Testing: Selected Services
Test that selected services and Manually input services show on the page
Testing: Total Cost Method
Create a test for the Total Cost Method
Show Services on Homepage as clickable buttons
When I go to "/" I should see a button for each of the services from the seed file
Add gems to Gemfile
- bcrypt
- factory_bot_rails
- rspec-rails
- capybara
- launchy
- pry
- simplecov
- shoulda-matchers
Manual Input
On the homepage, there should be an option for me to manually input a price. I should be able to choose between incrementing or decrementing the amount
It should have a place to Input a name as well. (DO NOT save these as services as something like Spoiler can have multiple prices depending on which one they pick)
Create Services Table
Services do not belong to any other resource.
Attributes
- name
- cost
Styling
Add Styling to the calculator
Testing: Total Price Increment Method
Add test for method that Increments total price when service button is clicked
Show Current Selected Services
On the homepage, user should be able to see what services they have selected
EX: Engine, Tint
Add Services to Seed File
The following services need to be added to the database through the seed file
Service Name: Cost
Engine: 11,000
Max Brakes: 3,100
Transmission: 12,500
Suspension: 2,700
Armor: 15,000
Turbo: 14,000
Rims: 1,500
Tint: 1,750
Xenons: 2,125
Rim Color: 1,200
Blue Package: 58,300
Neon Color: 1,500
Neon Kit: 5,500
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.