mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 21:07:46 +00:00
* Add API for frameworks and examples * Adjust headers * Update frameworks list * Always use latest * Add types * Use now repo for downloading and listing * Use .existsSync * Remove unused packages * Use 307 for redirect * Add examples * Update tsconfig.json Co-Authored-By: Steven <steven@ceriously.com> * Make examples unique * Remove detectors from frameworks API * Use /api instead of Next.js * Install dependencies * Rename project * Change name * Empty * Change name * Update api/tsconfig.json Co-Authored-By: Steven <steven@ceriously.com> * Update examples Co-authored-by: Steven <steven@ceriously.com>
30 lines
1.2 KiB
Markdown
30 lines
1.2 KiB
Markdown

|
|
|
|
# React Example
|
|
|
|
This directory is a brief example of a [React](https://reactjs.org/) app with [Serverless Functions](https://zeit.co/docs/v2/serverless-functions/introduction) that can be deployed with ZEIT Now and zero configuration.
|
|
|
|
## Deploy Your Own
|
|
|
|
Deploy your own React project, along with Serverless Functions, with ZEIT Now.
|
|
|
|
[](https://zeit.co/new/project?template=https://github.com/zeit/now-examples/tree/master/create-react-app-functions)
|
|
|
|
_Live Example: https://create-react-app-functions.now-examples.now.sh/_
|
|
|
|
### How We Created This Example
|
|
|
|
To get started with React, along with [Serverless Functions](https://zeit.co/docs/v2/serverless-functions/introduction), with ZEIT Now, you can use the [Create-React-App CLI](https://reactjs.org/docs/create-a-new-react-app.html#create-react-app) to initialize the project:
|
|
|
|
```shell
|
|
$ npx create-react-app my-app
|
|
```
|
|
|
|
### Deploying From Your Terminal
|
|
|
|
You can deploy your new React project, along with [Serverless Functions](https://zeit.co/docs/v2/serverless-functions/introduction), with a single command from your terminal using [Now CLI](https://zeit.co/download):
|
|
|
|
```shell
|
|
$ now
|
|
```
|