.
├── backend
│ ├── app # Local app
│ | └── ...
│ ├── vintage # Core project folder
│ | └── ...
│ ├── static
│ | └── ...
│ ├── templates
│ | └── ...
│ ├── manage.py
│ └── Dockerfile
├── front
│ ├── node_modules
│ | └── ...
│ ├── public
│ | └── ...
│ ├── src
│ | ├── assets
| │ | └── ...
│ | ├── components
| │ | └── ...
| │ ├── App.vue
│ | └── ...
│ ├── Dockerfile
│ └── ...
├── .env
├── docker-compose.yml
├── .gitignore
└── README.md
To start the application it is necessary to include the .env file
docker-compose build
The application is built with Node.js and already has all environment configured with docker. To start the application you will need docker
and docker-compose
installed on the machine. Having that you may run:
docker-compose up
And then the application and database will be started:
Starting vintage_web_front ... done
Starting vintage_mailhog_1 ... done
Starting vintage_db ... done
Starting vintage_web_api ... done
The application will be avaible on PORT 8000 and 8080_ by default, but it's configurable via docker-compose.yml
file as an environment variable.
docker exec -ti vintage_web_api python /code/manage.py makemigrations
docker exec -ti vintage_web_api python /code/manage.py makemigrations app_name --empty
docker exec -ti vintage_web_api python /code/manage.py migrate
docker exec -ti vintage_web_api python /code/manage.py createsuperuser