Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add how to install yarn via apt for Ubuntu users. #662

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 25 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,51 @@ and run a local server. This section shows you how.

[Node.js](https://nodejs.org/en/download) version 16.14 or above (which can be checked by running `node -v`). You can use [nvm](https://github.com/nvm-sh/nvm) for managing multiple Node versions on a single machine installed.

### Install yarn
- apt

```shell
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt install -y nodejs
fujitatomoya marked this conversation as resolved.
Show resolved Hide resolved
```

### Install yarn

- npm

```shell
npm install -g yarn
```

### Install dependencies
- apt

```shell
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install -y yarn
fujitatomoya marked this conversation as resolved.
Show resolved Hide resolved
```
cd website

### Install dependencies

```shell
cd website
yarn
```

### Local Development

```
$ yarn start
```shell
yarn start
```

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Your website is at [http://localhost:3000/](http://localhost:3000/)
Your website is at [http://localhost:3000/](http://localhost:3000/). (You can also use `--host` option to bind the IP address instead of `localhost`.)

### Build

```
$ yarn build
```shell
yarn build
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.
Expand Down