Skip to content

Latest commit

 

History

History
39 lines (35 loc) · 1.14 KB

README.md

File metadata and controls

39 lines (35 loc) · 1.14 KB

INTRO:

This is my implementation of a simple CowClicker exercise

SETUP:

GENERAL

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

API

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

VUE CLIENT

Launch with NPM. Docker deployment is for a prod environment.

To launch development server:

cd VueComponent/interview-client
npm install -s
npm run serve

REACT CLIENT

Launch with NPM:

cd react-frontend
npm install -s
npm start