2017-10-22 20:00:29 +00:00
|
|
|
# Baby Buddy
|
|
|
|
|
2017-10-22 22:24:52 +00:00
|
|
|
[](https://travis-ci.org/cdubz/babybuddy)
|
|
|
|
[](https://coveralls.io/github/cdubz/babybuddy?branch=master)
|
2017-10-23 08:25:31 +00:00
|
|
|
[](https://opensource.org/licenses/BSD-2-Clause)
|
2017-10-22 22:24:52 +00:00
|
|
|
|
2017-10-22 21:08:16 +00:00
|
|
|
A buddy for babies! Helps caregivers track sleep, feedings, diaper changes, and
|
2017-10-24 00:33:28 +00:00
|
|
|
tummy time to learn about and predict baby's needs without (*as much*) guess
|
2017-10-23 14:38:52 +00:00
|
|
|
work.
|
|
|
|
|
2017-10-28 03:20:52 +00:00
|
|
|

|
|
|
|
|
|
|
|

|
2017-10-22 20:00:29 +00:00
|
|
|
|
2017-10-23 09:25:56 +00:00
|
|
|
## Demo
|
|
|
|
|
2017-10-23 14:38:52 +00:00
|
|
|
A [demo of Baby Buddy](https://babybuddy.herokuapp.com) is available on Heroku.
|
|
|
|
The demo instance resets every hour. Login credentials are:
|
|
|
|
|
|
|
|
- Username: `admin`
|
|
|
|
- Password: `admin`
|
2017-10-23 09:25:56 +00:00
|
|
|
|
2017-10-24 00:33:28 +00:00
|
|
|
## Deployment
|
|
|
|
|
|
|
|
**:warning: Baby Buddy is still in early development and does not yet have a
|
|
|
|
stable production deployment flow. :warning:**
|
|
|
|
|
|
|
|
### Heroku
|
|
|
|
|
|
|
|
[](https://heroku.com/deploy)
|
|
|
|
|
|
|
|
Once the app is deployed, log in with the default credentials (`admin`/`admin`).
|
|
|
|
|
2017-10-23 08:25:31 +00:00
|
|
|
## Development
|
|
|
|
|
|
|
|
### Installation
|
2017-10-22 20:00:29 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
pip install pipenv
|
|
|
|
pipenv install --dev
|
2017-10-22 21:23:48 +00:00
|
|
|
npm install -g gulp-cli
|
2017-10-22 20:00:29 +00:00
|
|
|
npm install
|
2017-10-23 17:50:20 +00:00
|
|
|
gulp migrate
|
|
|
|
gulp
|
2017-10-22 20:00:29 +00:00
|
|
|
```
|
|
|
|
|
2017-10-22 20:50:47 +00:00
|
|
|
Open [http://127.0.0.1:8000](http://127.0.0.1:8000) and log in with the default
|
2017-10-23 14:38:52 +00:00
|
|
|
user name and password (`admin`/`admin`).
|
2017-10-22 20:50:47 +00:00
|
|
|
|
2017-10-22 20:00:29 +00:00
|
|
|
### Fake data
|
|
|
|
|
2017-10-26 16:26:09 +00:00
|
|
|
Add some fake data to the database with the following command:
|
2017-10-22 20:00:29 +00:00
|
|
|
|
|
|
|
```
|
2017-10-26 16:26:09 +00:00
|
|
|
gulp fake
|
2017-10-24 00:33:28 +00:00
|
|
|
```
|
|
|
|
|
2017-10-26 16:26:09 +00:00
|
|
|
By default, ``fake`` creates one child and 31 days of random data. Use the
|
|
|
|
``--children`` and ``--days`` flags to change the default values, e.g.
|
|
|
|
``gulp fake --children 5 --days 7`` to generate five fake children and seven
|
|
|
|
days of data for each.
|
|
|
|
|
2017-10-24 00:33:28 +00:00
|
|
|
### Testing
|
|
|
|
|
|
|
|
:exclamation: Tests require static files to be collected, it may be necessary
|
|
|
|
to execute ``gulp build && gulp collectstatic`` before tests (if static files
|
|
|
|
have changed).
|
|
|
|
|
|
|
|
```
|
|
|
|
gulp test
|
|
|
|
```
|