文件名称:autora:Autora是使用Express.js和Sqlite制作的URL缩短器
文件大小:35KB
文件格式:ZIP
更新时间:2024-06-11 10:58:56
nodejs url-shortener sqlite3 JavaScript
奥托拉 Autora是使用Express.js和SQLITE制作的URL Shortener。 设置非常容易,以下是要求: Node.js v14 +。 拥有对文件夹autora运行的完全权限。 如何设定: git clone https://github.com/CosmicIceDev/autora 。 cd autora 。 npm install 。 使用您自己的值修改config.js。 创建一个名为db的目录,并在该目录内创建一个文件,使用您在config.js为dbFileName使用的任何名称,或者如果保持dbFileName ,则将其命名为autora.sqlite3 。 使用pm2( npm i -g pm2 , pm2 start index.js )或使用node index.js运行服务器。 恭喜! 您已经设置了自己的Autora实例! 用法:
【文件预览】:
autora-master
----config.js(190B)
----index.js(755B)
----package.json(440B)
----routes()
--------index.js(917B)
--------api()
--------api.js(314B)
----LICENSE(7KB)
----package-lock.json(86KB)
----.gitignore(22B)
----public()
--------404.html(1KB)
--------index.html(2KB)
--------api.html(573B)
----README.md(1KB)
----.gitattributes(106B)
----db.js(2KB)