- OS - Ubuntu Server 18.04 LTS (HVM)
- SSD - 8GB
- AWS Insance Type - t2.micro
- Repository Setup
- $ mkdir -p ~/workspace && cd ~/workspace
- $ git clone https://github.com/vikas91/black-jack.git
- Python3, Pip, virtualenv Setup
- Ubuntu 18 comes with python3 installed. If not follow the link here
- $ sudo apt install pip3
- $ sudo pip3 install virtuale
- $ cd ~/workspace/black-jack
- $ virtualenv packages
- $ source packages/bin/activate
- $ pip install -r requirements.txt
- $ cd ~/workspace/black-jack/webapp
- $ python manage.py makemigrations webapp
- $ python manage.py migrate
- $ screen
- $ python manage.py runserver 0.0.0.0:8000 10.$ ctrl + a + d (detach from screen)
- $ cd ~/workspace/black-jack/webapp
- $ python manage.py createsuperuser
- Create tables by adding minimum bet value for the table by visiting admin url http://0.0.0.0:8000