1.2.3 • Published 12 months ago
@lezzserver/cli v1.2.3
- 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
create your account for the first time, open http://localhost:2222/register in your browser, click sign up button and add your account,
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)
- create react vite project with lezzserver cli
lezzserver create your-project
- install depedencies
cd your-project && npm install @lezzserver/cli @lezzserver/react @lezzserver/server
- 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