Skip to content

Commit

Permalink
Merge pull request reactjs#6 from reactjs/update-readme
Browse files Browse the repository at this point in the history
Specify nodejs version needed
  • Loading branch information
poteto authored Dec 21, 2020
2 parents a8d5c72 + 40aaaaf commit c937448
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Server Components are an experimental feature and **are not ready for adoption**

## Setup

You will need to have nodejs >=14.9.0 in order to run this demo. [Node 14 LTS](https://nodejs.org/en/about/releases/) is a good choice!

```
npm install
npm start
Expand All @@ -38,6 +40,8 @@ The app won't work until you set up the database, as described below.

This demo uses Postgres. First, follow its [installation link](https://wiki.postgresql.org/wiki/Detailed_installation_guides) for your platform.

Alternatively you can check out this [fork](https://github.com/pomber/server-components-demo/) which will let you run the demo app without needing a database. However you won't be able to execute SQL queries, but fetch should still work.

The below example will setup the database for this app, assuming that you have a UNIX-like platform:

### Step 1. Create the Database
Expand Down

0 comments on commit c937448

Please sign in to comment.