An open API service indexing awesome lists of open source software.

https://github.com/blakepro/vue-djangorest-docker-nginx

Example of VueJs, Django, Django Rest Framework, Postgres and Nginx
https://github.com/blakepro/vue-djangorest-docker-nginx

django-rest-framework djnago nginx nginx-proxy postgres vuejs

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        


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

```sh
cd front && docker-compose up
```

Open [http://localhost:8081](http://localhost:8081) with your browser to see the app

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

```sh
cd back && docker-compose up
```

Api BackEnd [http://localhost:1337](http://localhost:1337)

### Debug FrontEnd
```sh
yarn serve
```

### Debug BackEnd
```sh
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