Skip to content

This page provides a sample nap schedule but unlike most—if not all—baby schedule generators, the time and length of naps or awake times can be adjusted.

License

Notifications You must be signed in to change notification settings

paxcodes/babynaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Baby Sleep Schedule Maker

A hobby project to gain hands-on learning experience with Nuxt.js, Flask, and deploying to Netlify and Heroku. I also needed a schedule generator for my baby back in 2018. 🥰

This page generates a sample nap schedule. Unlike most, if not all, baby schedule generators, the schedule is customizable:

  • The time and length of naps or awake times can be adjusted.
  • Naps can be added or removed.

Screenshot: Home Page

Screenshot: Customizable Schedule and Chart

Development

Frontend

Requires at least node v.14

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

For a detailed explanation on how things work, check out Nuxt.js docs.

Backend

  1. Install poetry
  2. Run the following commands
# create and activate the virtual environment
$ poetry shell

# install dependencies
$ poetry install

Testing

pytest is used to test the API.

  1. If virtual environment is not yet activated, run poetry shell
  2. Run tests: pytest

About

This page provides a sample nap schedule but unlike most—if not all—baby schedule generators, the time and length of naps or awake times can be adjusted.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published