dcampuzano101 / hoopr Goto Github PK
View Code? Open in Web Editor NEWHoopr: Find basketball courts near you! Rate/Upload Photos/Review!
Home Page: https://hoopr.herokuapp.com/#/
Hoopr: Find basketball courts near you! Rate/Upload Photos/Review!
Home Page: https://hoopr.herokuapp.com/#/
Please set up your project skeleton, by following step 1 in this setup guide:
https://open.appacademy.io/learn/swe-in-person-nyc/react/rails-react-redux-configuration-checklist
* Ensure that is a Rails v.5 project
* Remember to set the DB to Postgres and skip turbolinks, as described in the linked guide
Hey David, nice work on MVP list and Database schema! I have some initial comments below, will share feedback on your Sample State and Frontend / Backend routes later today. We'll meet on Monday to discuss any questions.
DESIGN DOCS FEEDBACK - MVP list:
DESIGN DOCS FEEDBACK - Database Schema:
category
column; that would force each business to only have one category. Instead, add a categories
table and a business_categories
joins table, as described in the below sectionsprice_range
columnlatitude
and longitude
columns; these will be useful for the map feature (reference the BenchBnb project for additional guidance).id
column; Postgresql automatically indexes the primary key and constrains it for uniqueness so you don’t need to add one explicitly.categories
table so that you can store categories for filtering and searching (your 4th MVP)business_categories
joins table, so that each business can fall into multiple categories, and each category can apply to many businesses.id
column.business_id
and user_id
columns)DESIGN DOCS FEEDBACK - Sample State:
priceRange
, latitude
, longitude
reviewIds
pointing to an arrayreviewIds
so you can easily access all reviews for a given business.userId
and businessId
instead of username
and businessName
. It’s better practice to store the unique identifiers for each associated resource; and those in turn can be used to extract the appropriate author or the appropriate business from their respective slices of state.DESIGN DOCS FEEDBACK - Backend Routes:
/api/users/:id
DELETE
route.GET /api/businesses
GET /api/reviews/:id
GET /api/businesses/business_id/reviews
DELETE
& PATCH
: same comment as above for fetching a single review: these shouldn’t be nested routes (unnest them).DELETE
route.DESIGN DOCS FEEDBACK - Frontend Routes:
/biz/:bizId
:
/search?query
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.