/management-tools

Management-tools

Primary LanguageJavaScript

Welcome

Developer usage

Using Docker

Create image

$ docker image build -t react:app .

See image details

docker image ls react:app

Go into image

docker container run -it react:app bash

Run

docker container run -it -p 80:8080 -p 35729:35729 -v $(pwd):/app react:app

Print app output

$ docker logs

Enter the container

$ docker exec -it /bin/bash

Test

curl -i localhost:35729

See container IDs

$ docker ps

Go into postgres container

$ docker exec -it [POSTGRES_CONTAINER_ID] /bin/bash root@[CONTAINER_ID] $ su - postgres root@[CONTAINER_ID] $ psql db

Using Docker-compose

start

$ docker-compose up

remove

$ docker-compose down

inspect

#docker-compose run postgres bash

Access web application by

http://0.0.0.0:80

Create tables and migrations using Sequilize

sequelize init sequelize model:create --name Todo --attributes title:string sequelize db:migrate