1.2.3 • Published 12 months ago

@lezzserver/cli v1.2.3

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago
  1. run lezzserver on your local machine
docker run -d --name lezzserver  -p 2222:2222 -p 2223:2223 lezzserver/lezzserver-lite

note: lezzserver need to expose port 2222 and 2223

  1. create your account for the first time, open http://localhost:2222/register in your browser, click sign up button and add your account,

  2. install lezzserver cli globally

npm install -g @lezzserver/cli

now the lezzserver ready at your local machine, we can integrate lezzserver to your react project

React Vite (with template)

  1. create react vite project with lezzserver cli
lezzserver create your-project
  1. install depedencies
cd your-project && npm install @lezzserver/cli @lezzserver/react @lezzserver/server
  1. run lezzserver client
npx lezzserver dev

this command will redirect you to a login page and select new project after you success login run react

npm run dev