/music-controller-docker-webpack

Project based on django, webpack, react, typescript with docker

Primary LanguageJavaScript

Music Controller

Play and Stop Music

Description

Project based on Djando Framework, for developement uses docker, webpack, react with typescript

Getting Started

Build project with docker-compose

Build docker images of django and frontend(webpack), run this command in root of project

docker-compose build

Run project

After of build image, up project

docker-compose up

Create django project

docker-compose run --rm app sh -c "django-admin startproject app ."

Create api app

docker-compose run --rm app sh -c "python manage.py startapp api"

Create frontend app

docker-compose run --rm app sh -c "python manage.py startapp frontend"

Create frontend spotify

docker-compose run --rm app sh -c "python manage.py startapp spotify"

Create migrations

docker-compose run --rm app sh -c "python manage.py makemigrations"

Run migrations

docker-compose run --rm app sh -c "python manage.py migrate"

Typescript

Fixing issue of types in VS Code

First cd into the frontend folder.

cd frontend

Copy node_modules folder from container to host with docker command

docker cp music-controller-docker-webpack-frontend-1:/app/node_modules/ ./