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

https://github.com/anistark/file-uploader


https://github.com/anistark/file-uploader

api-server express-js expressjs file-upload node-js nodejs rest-api sequelize

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# file-uploader

## Setup

```
npm install
```

Copy all config

```
cp config_example.js config.js
```

```
cp server/config_example.json server/config.json
```

Replace the values with your custom values

#### Model Migrations

```
node_modules/.bin/sequelize db:migrate
```

## Run

```
nodemon
```

Make sure your file upload `Content-Type` / `enctype` is set to `multipart/form-data`

## [Postman Api Collection](1) for easy usage

Sample Model Creation

```
node_modules/.bin/sequelize model:create --name member --attributes "first_name:string,last_name:string,email:string,phone:string,password:string"
```

[1] : https://www.getpostman.com/collections/99968cec44dad662f97f