-
Run
init_database.sh
tohear more about your car's extended warrantyinitialize the database.- if loading the default colors fails migrations are reset
- you can explicitly ask for migrations to be reset by passing the
migrations
argument - read the script for more details
-
Handling new migrations
- add the filename(s) of the new migrations to
init_database.sh
- add the (negated) filename to .gitignore
- don't forget to commit these changes as well as the migrations!
- add the filename(s) of the new migrations to
-
Working with the docs
- Javascript dependencies:
npm install --global apidoc serve
- Build the docs:
apidoc -i ./rgblent_api/views -f .py -o docs/
- Serve the docs:
cd docs; serve
- Javascript dependencies:
Color fixtures expect an unsigned, 8-bit integer (0-255) despite many of us using hex bytes (00-FF) to remember red, green and blue values. To use familiar hex values, simply create your red
, green
and blue
fields like this:
...
"red": 0xff,
"green": 0x12,
"blue": 0x34,
...
and then run the following command (hit ":" from NORMAL mode and then type the following):
%s|0x..|\=printf("%d", submatch(0))
TODO: check to see if this works in VS Code Vim
Python:
- django
- django-rest-framework
- python-colormath
JavaScript:
- apidoc
- serve