/musicexplore

scrape music classifications for exploring

Primary LanguagePython

basicproject

This is a Django/React starter project with lots of batteries included. I created it to get started on new projects more quickly and stay up-to-date on the tools I like to use. I'm hoping you'll get something out of it too.

Getting Started

macOS

  1. Install the following:

    • Command Line Tools package - xcode-select --install
    • Vagrant
    • VirtualBox
    • Homebrew
    • Ansible - brew install ansible
    • Node.js - brew install homebrew/versions/node6-lts
  2. To start the backend and watch for code changes, run the following in a terminal window:

    git clone https://github.com/johnthedebs/basicproject.git
    cd basicproject
    vagrant up
    vagrant ssh
    runserver
    
  3. To build the frontend and watch for code changes, run the following in a second terminal window:

    sudo npm install -g yarn gulp
    yarn
    gulp
    
  4. Visit localhost:8080 in a browser

New Deploy Checklist

  • Set SECRET_KEY in settings.py
  • Set host and user in fabfile
  • Rename ops/host_vars/basicproject
    • Set hostname, user, ansile_ssh_host, and ansible_ssh_user
    • Change ops/production to reflect host_vars file name
  • Set hostname, site_name, site_path in group_vars
  • Set remote_user in ops/site.yml
  • In conf/production.py
    • Set ALLOWED_HOSTS, ADMINS, RAVEN_CONFIG dsn