Node.js URL 缩短器 API

使用 Node.js 构建的 URL 缩短器 API

项目设置

  1. 安装依赖: 在项目根目录下运行 npm install
  2. 启动数据库: 启动 MongoDB 数据库。
  3. 运行服务器: 在项目根目录下运行 npm start

运行成功后,您将在控制台看到 “Server started on localhost:3000” 信息。

使用说明

访问 localhost:3000,即可开始使用 API 缩短 URL。您可以选择使用图形化界面工具来管理数据库。

zip
url-shortener-master.zip 预估大小:22个文件
folder
url-shortener-master 文件夹
file
.gitignore 52B
file
README.md 1KB
folder
.github 文件夹
file
ISSUE_TEMPLATE.md 1KB
file
PULL_REQUEST_TEMPLATE.md 921B
file
CONTRIBUTING.md 3KB
folder
server 文件夹
folder
views 文件夹
file
indexMod.html 2KB
file
index.html 1KB
file
404.html 4KB
file
server.js 2KB
folder
public 文件夹
file
Logo.png 16KB
file
script.js 354B
file
body.jpg 1.39MB
file
style.css 637B
file
styles.css 2KB
folder
db 文件夹
file
mongoose.js 151B
folder
model 文件夹
file
url.js 479B
folder
config 文件夹
file
config.json 202B
file
config.js 296B
folder
playground 文件夹
file
mongoose.js 368B
file
package.json 455B
file
LICENSE.md 1KB
file
package-lock.json 18KB
zip 文件大小:1.25MB