Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tutorial: Build a Yelp-clone in React

License

NotificationsYou must be signed in to change notification settings

fullstackreact/react-yelp-clone

Repository files navigation

Fullstack React Yelp Clone Tutorial

React Tutorial: Build a Yelp CloneDolpins

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

See thedemo andaccompanying blog post.

Let's build a lightweight clone of Yelp using React.

In this tutorial we'll talk about:

  • How to setup a new React project from scratch
  • How to create a basic React component
  • How to write modular CSS usingpostcss
  • How to setup testing
  • How route to different pages withreact-router
  • How to integrate with Google Maps
  • How to write a Google Maps React component
  • How to write a five-star rating component

We'll be tying in a lot of different pieces ofReact 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.

Quickstart

First, clone the repository:

git clone https://github.com/fullstackreact/react-yelp-clone.git react-yelp-clonecd react-yelp-clone# install the dependenciesnpm install# copy configuration (see below)cp .env.example .env# start the servernpm start

Configuring the Application

This app usesdotenv for configuration. In order to configure the application for your own api access,grab an api token from Google here and set it in a file called.env at the root for a key called__GAPI_KEY__.For instance, say that your gapi key is:abc123. Your.env file should look like:

GAPI_KEY=abc123

You can also create this file by copying the.env.example file at the root:

cp .env.example .env

Starting the Application

npm install npm start

Libraries We'll Use

This app uses the following technologies:

Running the Tests

The application is built using tests, including the fantasticenzyme andchai libraries. To run the tests, use thenpm test script:

npm runtest

Check out the blog post for more information on how this app was built and a complete tutorial on using React to build your own apps.

Contributing

git clone https://github.com/fullstackio/yelp-clone.git yelpcd yelpnpm installnpm start

Fullstack React Book

Fullstack React Book

This app was built alongside the blog postReact Tutorial: Cloning Yelp.

This repo was written and is maintained by theFullstack React 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.

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.

License

MIT

About

Tutorial: Build a Yelp-clone in React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp