Sequelize provides utilities for generating migrations, models, and seed files. They are exposed through the sequelize-cli
command.
$ npx sequelize-cli init
import moment from "moment"; | |
const startDate = "2020-09-23"; | |
const months = 6; | |
const getWeeks = (weekRanges) => { | |
const weekNumbers = []; | |
weekRanges.forEach((date) => { | |
weekNumbers.push(moment(date.begin, date.end).week()); | |
}); |
Zen Of Javascript | |
Build functionality, not architecture. | |
Build small things that work | |
and glue them together to make big things. | |
Clear is better than clever, | |
but graceful beats both. | |
Comments are good, even if you're Dutch. | |
Asychronous is better than synchronous | |
except for when it isn't |