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.
-
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
- Command Line Tools package -
-
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
-
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
-
Visit
localhost:8080
in a browser
- 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