Skip to content

Commit

Permalink
update frontend readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
huoyijie committed Aug 15, 2023
1 parent d31fcca commit fc4b633
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# An easy to use whiteboard
# Infinity

## Get started

* bankend
* frontend

## 控制画线平滑的算法

Expand Down
41 changes: 40 additions & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,40 @@
This is a starter template for [Learn Next.js](https://nextjs.org/learn).
# Frontend

## Run locally

* Prerequisites

1. Node v18.15.0+
2. git

```bash
$ cd ~/vswork
$ git clone git@github.com:huoyijie/infinity.git
```

* Install deps

```bash
$ cd infinity/frontend
$ npm i
```

* Add .env file

```bash
$ cat <<EOF > .env
NEXT_PUBLIC_SOCKETIO_URL=ws://your_bankend_server_domain_or_ip:your_bankend_server_port
EOF
```

Don't forget to change `your_bankend_server_domain_or_ip` and `your_bankend_server_port` (5000).

If you run the bankend server behind reverse server (such as Nginx) and use tls, change `ws` to `wss`.

* Run server

```bash
$ npm run dev
```

## Deploy steps [Github pages]

0 comments on commit fc4b633

Please sign in to comment.