Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codertonychan/image-dl-site-api
image-dl-site api server for shortcuts
https://github.com/codertonychan/image-dl-site-api
koa koa2
Last synced: 28 days ago
JSON representation
image-dl-site api server for shortcuts
- Host: GitHub
- URL: https://github.com/codertonychan/image-dl-site-api
- Owner: CoderTonyChan
- License: mit
- Created: 2018-11-01T07:19:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-02T03:01:07.000Z (over 6 years ago)
- Last Synced: 2024-11-10T15:49:23.626Z (3 months ago)
- Topics: koa, koa2
- Language: JavaScript
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# image-dl-site-api
image-dl-site api server for shortcuts- image-dl-site兄弟项目!
```
docker build -t codertonychan/image-dl-site-api:latest .
```## 部署
### 手动部署
- 部署涉及到以下基本编程常识:
- 命令行操作
- Git
- Node.js >= 8.0.0
- npm 或 yarn```部署Node.js环境
yum install git
git clone https://github.com/cnpm/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
echo ". ~/.nvm/nvm.sh" >> /etc/profile
source /etc/profile
nvm list-remote
nvm install v10.0.0
``````部署测试项目
git clone https://github.com/CTLifeHand/image-dl-site-api.git
cd image-dl-site-api
npm i
```### 使用 Docker 部署
```
docker pull codertonychan/image-dl-site-api
docker run -d --name image-dl-site-api -p 3000:3000 codertonychan/image-dl-site-api
or docker run -d --name image-dl-site-api -p 80:3000 codertonychan/image-dl-site-api
```