Skip to content

Commit d87630e

Browse files
committed
resources / readme
1 parent f66ff6a commit d87630e

6 files changed

+84
-18
lines changed

Diff for: LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Fullstack.io <fullstack.io>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

Diff for: README.md

+62-18
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,51 @@
1-
## Yelp clone
1+
<p align="center">
2+
<img src="resources/readme/fullstackreact-yelp-clone-tutorial.png" alt="Fullstack React Yelp Clone Tutorial" />
3+
</p>
24

3-
TLDR: [demo](http://fullstackio.github.io/yelp-clone)
5+
# React Tutorial: Build a Yelp Clone [![Dolpins](https://cdn.rawgit.com/fullstackreact/react-yelp-clone/master/resources/readme/dolphins-badge-ff00ff.svg)](https://www.fullstackreact.com)
46

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
68
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/).
810

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.
1012

11-
### Cloning the repo:
13+
In this tutorial we'll talk about:
1214

13-
```bash
14-
$ git clone https://github.com/fullstackio/yelp-clone.git yelp
15-
$ cd yelp
16-
```
15+
- How to setup a new React project from scratch
16+
- How to create a basic React component
17+
- How to write modular CSS using `postcss`
18+
- How to setup testing
19+
- 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.
25+
26+
<p align="center">
27+
<img src="resources/readme/app-screenshot.png" />
28+
</p>
29+
30+
## Quickstart
1731

18-
### Install the dependencies
32+
First, clone the repository:
1933

2034
```bash
21-
$ npm install
35+
git clone https://github.com/fullstackreact/react-yelp-clone.git react-yelp-clone
36+
cd react-yelp-clone
37+
38+
# install the dependencies
39+
npm install
40+
41+
# copy configuration (see below)
42+
cp .env.example .env
43+
44+
# start the server
45+
npm start
2246
```
2347

24-
### Configuring the application
48+
## Configuring the Application
2549

2650
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__`.
2751
For instance, say that your gapi key is: `abc123`. Your `.env` file should look like:
@@ -33,15 +57,18 @@ GAPI_KEY=abc123
3357
You can also create this file by copying the `.env.example` file at the root:
3458

3559
```bash
36-
$ cp .env.example .env
60+
cp .env.example .env
3761
```
3862

39-
### Starting the application
63+
## Starting the Application
4064

4165
```bash
42-
$ npm start
66+
npm install
67+
npm start
4368
```
4469

70+
## Libraries We'll Use
71+
4572
This app uses the following technologies:
4673

4774
* [webpack](https://webpack.github.io)
@@ -55,7 +82,7 @@ This app uses the following technologies:
5582
* [chai](http://chaijs.com)
5683
* And much much more
5784

58-
### Running the tests
85+
## Running the Tests
5986

6087
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:
6188

@@ -73,5 +100,22 @@ cd yelp
73100
npm install
74101
npm start
75102
```
103+
___
104+
105+
# Fullstack React Book
106+
107+
<a href="https://fullstackreact.com">
108+
<img align="right" src="resources/readme/fullstack-react-hero-book.png" alt="Fullstack React Book" width="155" height="250" />
109+
</a>
110+
111+
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.
116+
117+
<div style="clear:both"></div>
118+
119+
## License
120+
[MIT](/LICENSE)
76121

77-
[fullstackreact.com](https://fullstackreact.com)

Diff for: resources/readme/app-screenshot.png

657 KB
Loading

Diff for: resources/readme/dolphins-badge-ff00ff.svg

+1
Loading

Diff for: resources/readme/fullstack-react-hero-book.png

83.1 KB
Loading
489 KB
Loading

0 commit comments

Comments
 (0)