mirror of
https://github.com/fspc/workstand.git
synced 2025-02-21 00:24:27 -05:00
Quickstart
Maybe this isn't such a quick start, but it's the best I have right now. After the following steps are completed, you will have a working development version of the Trailer-Safeguard Django application connectable on bikeshop-dev.local:8000/.
- Make sure Virtualbox is installed and updated
- Make sure Vagrant is installed and updated
- Verify pip is installed
which pip
- Verify ansible is installed
which ansible
- Clone source
git clone AHHHHHH
ansible-galaxy install zenoamaro.postgresql -p provision/roles
vagrant plugin install vagrant-hostsupdater
vagrant up
vagrant ssh
cd /srv/bikeshop && . /opt/venv/bikeshop_development/bin/activate
./manage.py migrate
./manage.py loaddata core/migrations/initial_data.yaml && ./manage.py loaddata authentication/migrations/initial_data.yaml
./manage.py runserver 0.0.0.0:8000
Example of dumpdata command
./manage.py dumpdata --exclude=auth --exclude=contenttypes --exclude=incoming --format=yaml
Reset the Postgres DB
vagrant ssh
sudo -i -u postgres
psql
\c trailersafeguard_development
-
DROP SCHEMA public CASCADE; CREATE SCHEMA public; GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO public; COMMENT ON SCHEMA public IS 'standard public schema';
6. Steps 11 and 12 from **Quickstart**.
Languages
Python
41.8%
HTML
34.7%
JavaScript
16.3%
SCSS
6.3%
Dockerfile
0.9%