-
In your terminal complete the following
- clone down this repo run
git clone https://github.com/mike-duke/byob-frontend.git
- cd into the
byob-frontend
npm install
will install all dependencies requirednpm start
application will be live on the following port:localhost:3000
npm test
will run test suite
For this project we contributed to a public repo created by @JoelSmith @KylieStanley. They created a backend repo with a database storing top rated taco restaurants and the US citiies where they are located. After contributing to issues on the scrum board on thier repo page we pivoted to creating a front-end site where users could find documentation on how to consume their API.
Using Jest and React.js we delivivered a fast single page appliction fueled by TDD. At the click of the button users are able to see a sample request body, status code for success, and reponse body for any given endpoint available on the server.
- React
- Jest
- Enzyme
- CSS
- Heroku
- TravisCI
- clone down this repo run
byob-frontend's Introduction
byob-frontend's People
Forkers
drhancilesbyob-frontend's Issues
Create Toggle City Components and Test File for Each Component
The following endpoints will toggle an expanded view of what is returned from the endpoint:
- Get
/api/v1/cities
// gets all cities - Post
/api/v1/cities
// show example obj with keys required for successful post - Get
/api/v1/cities/:id
// gets cities by a specific id, show a sample request url and what can be returned - Put
/api/v1/cities/:id
// show example obj with keys required for successful put request - Delete
/api/v1/cities/:id
// show example url for delete and point and render what is returned
Create Toggle Restaurant Components Test File for Each Component
The following endpoints will toggle an expanded view of what is returned from the endpoint:
- Get
/api/v1/restaurants
// gets all restaurants by rating ** via query params - Get
/api/v1/restaurants/:id
// gets a restaurant by a specific id, show an example request and then what would be returned - Get
/api/v1/cities/:id/restaurants
// gets all restaurants that are requested by a particular city id - Put
/api/v1/restaurants/:id
// show obj expected to receive for a successful put request - Post
/api/v1/cities/:id/restaurants
// show example object and request url path required to make successful post which allows you to add a new restaurant to the db - Delete
/api/v1/restaurants/:id
// show an example url path and show what is returned when this request is made successfully
Create Status Code Component
- create a component that shows all status codes for all errors and success codes when making a request to the server.
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.