javascript - making a data application that will store data on each day on the calendar -
i having bit of problem, sure question has been asked cant figure way google or find here.
i building web app angular , node.
my task every day (date) have own data , users able change data in next 3 days. admin offcurse able whatever wants.
my real question is: how going save calander in db. web app used years how going insert dates db. how can handle situation in client side. want admin able choose let date 4 months today , able change things. should here, , how going insert dates inside db.
thanks.
what type of database should first question: sql, nosql, custom, other?
next, decide how client , server communicate: ajax, websocket, rest ect..
then establish authentication.
then work out way client alter database, establish rules, or design in limited way.
then worry calculating dates , such...
you can go low storage cost method generating record when date altered away default. way need seek database until find record(by matching date field). can made faster breaking database multiple databases time ranges.
or can go faster, more storage intensive method of creating each record past future accessed. method can calculate right record index using date.
there other ways well, these might simple implement.
also think might useful calculating date names , such: https://code.google.com/p/datejs/
good luck
Comments
Post a Comment