-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
# An easy to use whiteboard | ||
# Infinity | ||
|
||
## Get started | ||
|
||
* bankend | ||
* frontend | ||
|
||
## 控制画线平滑的算法 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |