# imgserver **Repository Path**: fyt2020/imgserver ## Basic Information - **Project Name**: imgserver - **Description**: nodejs+expree+multer - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-25 - **Last Updated**: 2025-09-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 自主超声诊断系统图片服务 ## 项目说明 ***一.项目框架构成:node(express)*** **1.node服务主要提供图片上传功能及返回可以访问的地址** ***二.环境要求*** - Node.js(>=v15.14.0) - npm(>=v7.7.6) 或 yarn(>=v1.0.0) ***三.项目结构*** ├── src/ # nodejs代码 ├── pubilc/ # 前端打包后的文件 ├── .gitignore # Git 忽略文件列表 ├── package.json # 项目依赖和脚本 └── README.md # 项目说明文档 ***四.使用*** ## To Use To clone and run this repository you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line: ```bash # Clone this repository git clone https://gitee.com/fyt2020/imgserver # Go into the repository cd imgserver # Install node and electron dependencies npm install # Run the node npm start ``` ***五.打包*** ## To build ```bash # Clone this repository git clone https://gitee.com/fyt2020/imgserver # Go into the repository cd imgserver # Install node and electron dependencies npm install # Run the node npm start ``` Note: If you're using Linux Bash for Windows, [see this guide](https://www.howtogeek.com/261575/how-to-run-graphical-linux-desktop-applications-from-windows-10s-bash-shell/) or use `node` from the command prompt. ***六.功能*** 1.主要提供图片上传功能及返回可以访问的地址 ***七.技术栈*** ## Resources for Learning express - [express.org/docs](https://www.expressjs.com.cn/) - all of express's documentation 打包文件放在 /usr/local/bin/imgserver sudo nano /etc/systemd/system/imgserver.service [Unit] Description=img server After=network.target [Service] ExecStart=/usr/local/bin/imgserver WorkingDirectory=/usr/local/bin Restart=always RestartSec=5 User=ubuntu Environment=PORT=3000 [Install] WantedBy=multi-user.target sudo systemctl daemon-reload sudo systemctl enable my-server sudo systemctl start my-server