Calendar app from scratch
How would build a calendar layout and populate it from scratch?
28 Replies
Your best bet is to find an existing calendar app and use it as a reference point. From there, do your best to replicate it
is it really complicated?
For example, this is my Proton calendar for this month. On the left is the new event button, the "month-at-a-glance" and a list of calendars. The right side is the actual calendar days with a list of activities. There's the prev/next buttons to change the current month and some buttons to change from month-view to week- and day-view
The majority of it is going to be the main calendar view, which is a pretty easy CSS grid section
wow
how you handle leap years, gregoian vs julian ?
Leap year is easy fairly easy. The JS
Date
object should handle that for you
But why on earth would you want to have a Julian calendar?I think some countries use julian
Start simple (and useful). Less is more for almost all projects. A limited but functional calendar is infinitely times more useful than an idea with more uses
like that layout looks pretty involved
id get stuck
Start simple: only do the month view
It's a 7-column grid
One column for each day of the week
I was using this https://fullcalendar.io
That's…that's not "from scratch" 🤣
yeah that was due to not knowing how to build the structure myself
I just spin my wheels more than achieve anything
The structure is the easiest part. 7 columns with enough rows to handle all the days in that month
hmm so I was thinking of trying it with pico css
I don't know what pico CSS is
I probably should of tried a calendar layout with html and such first then moved it into laravel
Yes, you should use HTML for the content and CSS for the layout
[this is the way]
https://tenor.com/bpEmY.gif
maybe I should do a separate project on just making the layout and then combine it with the php when it's done?
seems like design and such is gonna kill any project I do
I'm not a fan of PHP, as it's sorta HTML sorta CSS and sorta JS. So I would suggest starting with just HTML, CSS, and JS to make the calendar page. Then you can use your backend of choice to do things like database, login, etc
I know b1 and erick are getting tired of me so I could end up leaving the server
I was mainly trying to focus on backend side but might not get me anywhere
If you want to focus on back end stuff then why start with a front-end heavy project like this? Do a few API services first that don't require a front end (or can have a super basic front-end like displaying database info in a table and that's it)
it was a project suggestion on youtube for a backend project
A calendar app was suggested as a back-end project? What YT channel said that?
a few them actually
*of
along with api and crud based stuff and bots
Really? Interesting. But I think that we should take this to DMs since it's not really a FE question at this point :p
I got this going