
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
1、全局安装 ``` > npm i oiii -g ``` 2、初始化项目(项目目录) ``` > bot init > bot init 1 # 覆盖已有文件 ``` 3、开启图像界面服务 ``` > bot open ui ``` 4、关闭图像界面服务 ``` > bot close ui ``` 默认访问端口: 请求代理端口为:80 对应静态资源访问路径为:localhost/admin 相应服务请求端口:8080 请求代理修改文件:./proxy.mjs
1、全局安装
> npm i oiii -g
2、初始化项目(项目目录)
> bot init
> bot init 1 # 覆盖已有文件
3、开启图像界面服务
> bot open ui
4、关闭图像界面服务
> bot close ui
默认访问端口: 请求代理端口为:80 对应静态资源访问路径为:localhost/admin 相应服务请求端口:8080 请求代理修改文件:./proxy.mjs 服务请求端口修改文件:./config.mjs
1、拉取项目
> git clone https://github.com/yangzongzhuan/RuoYi-Vue3.git
2、更新文件
> bot update
1、使用简易微服务(UDP/TCP)
import {udpService} from './index.mjs'
const pools = {
s: {test: 'localhost:9000/test'}
}
// 9000端
const s = udpService(pools, {port: 9000, callback(path, data, next) {
next('9000')
}})
// s.close()
// 9001端
const map = new Map
map.set('/test', data => new Promise((resolve, reject) => reject('9001')))
udpService(pools, {port: 9001, map}).s.test().then(r => console.log(r.toString())) // '9000'
也可以通过后台“系统工具”->“服务管理”里面辅助维护导出辅助mjs文件。
2、服务托管使用的是pm2库支持。
3、MySQL数据库库tools2/mysql2ssh2.mjs,基于mysql2和ssh2。
import Query from 'tools2/mysql2ssh2.mjs'
const query = new Query({...}, {...}) // mysqlConfig、sshConfig
query`SELECT * FROM t_test`.then(...)
query.close()
4、NoSql小型数据库操作见dmb3的README。
5、资源上传,可以将任何资源上传到config里面的静态目录。
6、实现接口时建议先阅读tools2的README里面封装express部分,开发管理系统接口建议继承Admin、AdminAuth、AdminAuthPerm这几个类, 开发其他接口也建议参考这几个类。
7、使用bot close ui命令可以关闭图形界面和图形界面支撑服务,使用bot open ui可以再次打开。
8、下个功能更新将用简易加密和clientKey+serveKey实现JWT。
FAQs
1、全局安装 ``` > npm i oiii -g ``` 2、初始化项目(项目目录) ``` > bot init > bot init 1 # 覆盖已有文件 ``` 3、开启图像界面服务 ``` > bot open ui ``` 4、关闭图像界面服务 ``` > bot close ui ``` 默认访问端口: 请求代理端口为:80 对应静态资源访问路径为:localhost/admin 相应服务请求端口:8080 请求代理修改文件:./proxy.mjs
The npm package oiii receives a total of 20 weekly downloads. As such, oiii popularity was classified as not popular.
We found that oiii demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.