Skip to content

salamanderin45/upload_foto

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published