Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 610 Bytes

README.md

File metadata and controls

59 lines (39 loc) · 610 Bytes

UPLOAD IMAGE

.env

PORT=3500
SERVER=http://localhost:3500/
HOST=localhost
DATABASE=test_upload_gambar
USERNAME=root
PASSWORD=null
PORT_MYSQL=3306
MYSQL=mysql

Build Setup

# install dependencies
$ yarn install

# build for production and launch server
$ yarn start

# generate DATABASE
seaquelize db:migrate

rest api

# get all
$ get: url/get_images

# get one
$ get: url/get_images/:id

# upload
$ put: url/get_images
# form data
# img

# deleted
$ deleted: url/get_images/:id

DOCKER

$ docker build -t back_end:1 .

$ docker-compose up -d