You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# React Tutorial: Build a Yelp Clone [](https://www.fullstackreact.com)
4
6
5
-
This repository is the main repo for the app discussed and built in great detail at the [fullstackreact /blog](https://fullstackreact.com/blog). For an in-depth discussion, check out the post.
7
+
> _tl;dr_ - This is the code for our blog post which will guide you through building a full React app, even with little to no experience in the framework. We're going build a Yelp clone in React
6
8
7
-
## Getting yelp up and running
9
+
See the [demo](http://fullstackio.github.io/yelp-clone)and [accompanying blog post](https://www.fullstackreact.com/articles/react-tutorial-cloning-yelp/).
8
10
9
-
Getting the app up and running is straight-forward. Clone the repo, install the dependencies, and run the start script.
11
+
Let's build a lightweight clone of Yelp using React.
- How route to different pages with `react-router`
20
+
- How to integrate with Google Maps
21
+
- How to write a Google Maps React component
22
+
- How to write a five-star rating component
23
+
24
+
We'll be tying in a lot of different pieces of [React](https://facebook.github.io/react/) together to build a full-sized React app. This post will guide you through building a full React app, even with little to no experience in the framework.
This app uses [dotenv](https://github.com/bkeepers/dotenv) for configuration. In order to configure the application for your own api access, grab an api token from google at [https://developers.google.com/maps/documentation/javascript/](https://developers.google.com/maps/documentation/javascript/) and set it in a file called `.env` at the root for a key called `__GAPI_KEY__`.
27
51
For instance, say that your gapi key is: `abc123`. Your `.env` file should look like:
@@ -33,15 +57,18 @@ GAPI_KEY=abc123
33
57
You can also create this file by copying the `.env.example` file at the root:
34
58
35
59
```bash
36
-
$ cp .env.example .env
60
+
cp .env.example .env
37
61
```
38
62
39
-
###Starting the application
63
+
## Starting the Application
40
64
41
65
```bash
42
-
$ npm start
66
+
npm install
67
+
npm start
43
68
```
44
69
70
+
## Libraries We'll Use
71
+
45
72
This app uses the following technologies:
46
73
47
74
*[webpack](https://webpack.github.io)
@@ -55,7 +82,7 @@ This app uses the following technologies:
55
82
*[chai](http://chaijs.com)
56
83
* And much much more
57
84
58
-
###Running the tests
85
+
## Running the Tests
59
86
60
87
The application is built using tests, including the fantastic [enzyme](https://github.com/airbnb/enzyme) and [chai](http://chaijs.com) libraries. To run the tests, use the `npm` test script:
This app was built alongside the blog post [React Tutorial: Cloning Yelp](https://www.fullstackreact.com/articles/react-tutorial-cloning-yelp/).
112
+
113
+
This repo was written and is maintained by the [Fullstack React](https://fullstackreact.com) team. In the book we cover many more projects like this. We walk through each line of code, explain why it's there and how it works.
114
+
115
+
This app is only one of several apps we have in the book. If you're looking to learn React, there's no faster way than by spending a few hours with the Fullstack React book.
0 commit comments