Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

🐳 Dev environment for flower-stuff-easy-web project. It starts Vue and Django projects in Docker containers.

Notifications You must be signed in to change notification settings

yuu-eguci/flower-stuff-easy-web-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flower-stuff-easy-web-docker

flower-stuff-easy-web トップ画像

Description

🐳 Dev environment for flower-stuff-easy-web project. It starts Vue and Django projects in Docker containers.

Installation

Prerequisites

If your machine is Windows ...

1. Start Docker Desktop

Start it.

2. Clone relevant repositories this repository

git clone git@github.com:yuu-eguci/flower-stuff-easy-web-docker.git && \
cd flower-stuff-easy-web-docker && \
git clone git@github.com:yuu-eguci/flower-stuff-easy-web-vue.git ./app/flower-stuff-easy-web-vue && \
git clone git@github.com:yuu-eguci/flower-stuff-easy-web-django.git ./app/flower-stuff-easy-web-django

3. Up docker containers

# In flower-stuff-easy-web-docker repository.
docker-compose up -d

4. Up flower-stuff-easy-web-vue

docker-compose exec vue-service sh -c 'yarn install' && \
docker-compose exec vue-service sh -c 'yarn serve'

5. Up flower-stuff-easy-web-django

In another terminal

cd flower-stuff-easy-web-docker && \
# Although already run "pipenv install" in Dockerfile, run this again for new libraries added.
docker-compose exec django-service sh -c 'pipenv install' && \
docker-compose exec django-service sh -c 'pipenv run python ./app/download_hdf5.py' && \
docker-compose exec django-service sh -c 'pipenv run python manage.py runserver 0.0.0.0:8000'

6. Open web page

7. Finish development

docker-compose down

About

🐳 Dev environment for flower-stuff-easy-web project. It starts Vue and Django projects in Docker containers.

Topics

Resources

Stars

Watchers

Forks