Skip to content

nik-tripp/CowClicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CowClicker API/Client exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published