https://github.com/andersinno/digit-workshop
Digit workshop
https://github.com/andersinno/digit-workshop
Last synced: about 1 year ago
JSON representation
Digit workshop
- Host: GitHub
- URL: https://github.com/andersinno/digit-workshop
- Owner: andersinno
- License: mit
- Created: 2018-10-01T08:17:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-17T06:40:35.000Z (over 7 years ago)
- Last Synced: 2025-05-14T11:38:38.662Z (about 1 year ago)
- Language: Shell
- Size: 25.4 KB
- Stars: 0
- Watchers: 12
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Digit Project
Hello! I am the Digit & Anders workshop project.
## Development
### Creating and updating requirements
* Run `prequ update`
### Installing requirements
* Run `pip install -r requirements.txt`
* Run `pip install -r requirements-dev.txt`
### Database
Docker environment has working database set up out of the box. If for
any reason there's a need to recreate it, here's how to do it:
docker exec -i digit_mysql mysql -uroot -pdigit_project -e "CREATE USER 'digit_project'@'localhost' IDENTIFIED BY 'digit_project';"
docker exec -i digit_mysql mysql -uroot -pdigit_project -e "CREATE DATABASE digit_project;"
docker exec -i digit_mysql mysql -uroot -pdigit_project -e "GRANT ALL PRIVILEGES ON digit_project.* TO 'digit_project'@'localhost';"
### Daily running
* Run `docker-compose build django` to build development environment docker image
* Run `docker-compose up` to start the development environment
## Running tests
* Set the `DEBUG` environment variable to `1`.
* Run `pytest`.