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
- Host: GitHub
- URL: https://github.com/anistark/file-uploader
- Owner: anistark
- License: mit
- Created: 2017-01-23T05:41:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-01T16:55:55.000Z (over 8 years ago)
- Last Synced: 2026-03-29T21:08:02.430Z (3 months ago)
- Topics: api-server, express-js, expressjs, file-upload, node-js, nodejs, rest-api, sequelize
- Language: JavaScript
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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