Skip to content

Example of VueJs, Django, Django Rest Framework, Postgres and Nginx

Notifications You must be signed in to change notification settings

BlakePro/vue-djangoRest-docker-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use VueJs, Django, Django Rest Framework, Postgres and Nginx

Cristian Yosafat Hernández Ruiz

How to use VueJs, Django, Django Rest Framework, Postgres, Gunicorn and Nginx


FrontEnd (VueJS) Docker Compose

You need to run FrontEnd and BackEnd CLI

cd front && docker-compose up

Open http://localhost:8081 with your browser to see the app

BackEnd (Django, Django Rest Framework, Postgres, Nginx) Docker Compose

cd back && docker-compose up

Api BackEnd http://localhost:1337

Debug FrontEnd

yarn serve

Debug BackEnd

python3 manage.py makemigrations app
python3 manage.py migrate app
python3 manage.py runserver

docker-compose run app python3 manage.py makemigrations app
docker-compose run app python3 manage.py migrate app
docker-compose up


How to use VueJs, Django, Django Rest Framework, Postgres, Gunicorn and Nginx How to use VueJs, Django, Django Rest Framework, Postgres, Gunicorn and Nginx