An open API service indexing awesome lists of open source software.

https://github.com/ecomplus/storage-api

E-Com Plus Storage API (DO Spaces) Node.js Express App
https://github.com/ecomplus/storage-api

aws-s3 cloudinary digitalocean-spaces ecomplus rest-api storage-api uploads-api

Last synced: 5 days ago
JSON representation

E-Com Plus Storage API (DO Spaces) Node.js Express App

Awesome Lists containing this project

README

        

Storage API

E-Com Plus Storage API (DO Spaces) Node.js Express App

# Technology stack
+ [NodeJS](https://nodejs.org/en/) 14.x
+ [Express 4](http://expressjs.com/) web framework

# Reference
+ https://www.digitalocean.com/community/tutorials/how-to-upload-a-file-to-object-storage-with-node-js
+ https://developers.digitalocean.com/documentation/spaces/
+ https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html

# Setting up
```bash
git clone https://github.com/ecomclub/storage-api
cd storage-api
cp config/config-sample.json config/config.json
nano config/config.json
```

Edit `config.json` placing correct values for your environment,
after that, start app with node:

```bash
node ./main.js
```

# Web server
You need to use a web server such as NGINX or Apache HTTP,
proxy passing the requests to configured TCP port.