【文件属性】:
文件名称:yelp-clone:在遵循fullstackreact.com教程的同时使用React.js构建的Yelp克隆
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-02 18:53:36
JavaScript
Yelp克隆
Full Stack React教程
运行应用
克隆此存储库。
$ git clone [https://github.com...repo.git] [YOUR_DIRECTORY]
获取。
在包含您的API密钥的项目根目录中创建一个.env文件。 它应该看起来像:
GAPI_KEY=xyz123
在localhost:3000运行该应用程序:
$ npm start
运行摩卡测试:
$ npm test
此处提供的代码是designsbytraina解决方案的作者在编写的教程的解决方案。
【文件预览】:
yelp-clone-master
----.gitignore(32B)
----.babelrc(210B)
----package.json(2KB)
----src()
--------app.js(416B)
--------components()
--------routes.js(307B)
--------.DS_Store(6KB)
--------views()
--------utils()
--------containers()
--------app.css(443B)
--------styles()
----karma.conf.js(790B)
----webpack.config.js(4KB)
----tests.webpack.js(235B)
----scripts()
--------prepublish.sh(119B)
----README.md(764B)