docker-compose contains a DNS server that can be disabled and replaced with an update to local hosts file
If using the DNS server, you must set a zone for the API's hostname
Expects hostname to be "sample-api.com", can be changed by updating both of the following
- nginx.conf:40
- djangoProject/mount/djangoProject/settings.py:28
Launch using docker-compose up --build
After launch, you need to run the migrations and some other tasks on initial setup
docker exec -it sample-api bash python manage.py migrate #run the migrations python manage.py collectstatic #Import css and other static files python manage.py createsuperuser #Create a user to generate sample data
Launch with NPM. Docker deployment is for a prod environment.
To launch development server:
cd VueComponent/interview-client npm install -s npm run serve
Launch with NPM:
cd react-frontend npm install -s npm start