DiaryTrove

DiaryTrove Used AI

12 devlogs
43h 13m
•  Ship certified
Created by Ilwân

This is an online private diary where you can write stuff when you want to. Those memories will then be saved and hidden, then those will get revealed again and sent by email after a certain amount of time to remind you of those precious memories!
In addition to your notes, you can select your mood, and even upload photos or other pieces of media!
‎
HOW TO TEST: If you don't want to create an account, you can log in using 'test' as the username and '12345678' as the password. Since it takes at least one day for a memory to unlock after being written, I already wrote one, which is currently unlocked and therefore visible.
There is already one memory which I wrote myself from the same interface as the one you'll have access to, I did this so that there will be at least one unlocked memory which you can display, to showcase the interface, but you can write your own memory and then check back one day after, it will appear as well!
You can also check the received emails for the test account by going to https://yopmail.com/ and putting 'diarytrove' as the email name, PLEASE DON'T DELETE THE EMAILS THERE, OTHERWISE OTHER PEOPLE WON'T SEE THEM.
‎
AI: I used just a bit of AI (less than 30% but I checked the box anyway) mainly for the JavaScript and to get help on some technical aspects, while reviewing and editing the output each time to ensure proper functioning and security.

Timeline

Removed static text in the demo memory, added a few memories from the interface, redeployed the website.

Update attachment

Ship 1

1 payout of shell 361.0 shells

Ilwân

about 1 year ago

Ilwân • Covers 11 devlogs and 43h 2m

After a lot of issues with the server, I finally deployed!!!
And also, wrote the deployment guide.

Update attachment

I have implemented the whole emailing system!

I made a few helper functions for sending emails and media. Now, the user will receive a simple welcome email when creating a new account.
And mainly, I set up a periodical job in the code to send memories by email when they get unlocked, all of this according to user email preferences, and in the chosen email language, which is automatically set on account creation and can be edited later on.

For the email appearance, I made a simple but nice HTML layout with CSS styling.
I also made it possible for images to be attached to the sent emails in order to be displayed directly when sending memory emails!

Aside from that, I made a few changes and fixes here and there as usual.

I reorganized quite a lot of stuff to make things easier for me and to make the code cleaner. Mainly, I made a few helper functions for repetitive tasks, and I also made subtemplates for the HTML files, so that now I don't have to copy-paste the head and the header to each file, and I can modify those in a single file for the changes to apply on the entire website!

But the real addition since the last devlog here is the new gallery page.
On this page, you can see previews of all your unlocked memories, with their title, date, mood, and also a preview of their content and an image if you uploaded at least one for the memory. Moreover, you can click on the preview to open the full view page for that memory!
The memories are sorted by date with the most recent ones at the top, and there's also a search bar to find a memory with the matching text in either the title or the whole text content.

And finally, I also completed the home page (which was basically empty before), so that now you can see the latest unlocked memory, and a randomly selected memory on the home page!

I think I'm basically finished with the whole interface now! The only thing missing is the emailing system, to send emails when memories are unlocked, that's the next thing I'll work on.
And if I have some more time after that, I'll also add a page to manage your account (change email or password), and a way to recover the account by sending a code by email, but that's not certain yet.

Update attachment

I finally completely finished the memory view page with media previews.
The media are now directly displayed in the page, with a button to open the media fine in a new window if you want to save it or whatever.

Oh boi, this one is pretty long, yet I don't have a lot to say.

There's not a lot to show here because I spent most of these hours on backend stuff, the only frontend part I did is the page to view an unlocked memory, except I didn't add the media previews directly on the page yet.

So on the backend side, I went around here and there and fixed, optimized, or cleaned some stuff, I also added model fields and stuff like that to prepare for future implementations.
But most importantly, I completely finished the private media implementation this time! Everything is now in place to properly handle AND serve private medias, both internally in the code with a helper function and externally with a way to access a memory's media file from the proper URL with permission checks so that only the owner of these media or a superuser can request and get the media files. For now you need to know the database keys to those media objects to find the right URL, but once I'll have implemented the media previews, you'll be able to request the raw media file in the browser by simply clicking on the previews!
(Thank gosh this private media hell is finally done, it was such a pain to set up lmao)

Update attachment

Okay, this one part somehow got way harder than I expected!
So, I implemented the page for the user to create a new memory. On this page, you can give the memory a title, write come content, select your mood by picking an emoji, and you can also customize the lock time for the memory, or keep the default one you set in your preferences.
But the thing that got really complicated was the media upload part.
Basically, you can upload medias (images, videos, etc) with your memory, and these medias will be attached to the memory object, and the files themselves will be stored in a dedicated folder.
The first challenge here was with the frontend, because I had to use a lot of JavaScript to make all of this work, and here I honestly got a lot of help from AI and then built more stuff over the generated code, because I only know the basics in JavaScript.
The second challenge was to privately store those medias, because with the way Django medias work, those can be accessed by anyone who can find the correct URL, but those medias in my case are private.
So I had to create a custom media storage backend which stores medias in their own folder, and those medias can only be accessed internally by the server-side code, meaning that I can perform verification and then serve the media directly from the code, without it being directly exposed.
Now the next step would be to modify the media upload system a bit to improve it, and to build the memory preview page, which shouldn't be that hard (I hope) since I already have almost all the frontend and backend code.

I fully implemented the page to change user preferences.
I also made an empty home page, and coded a bit of JavaScript so that the user gets a warning before exiting on a page containing a form, and also to lock some preferences if the user decided to prevent himself from editing the memories lock time in the preferences.
I also made quite random changes here and there for styling and navigation mainly.
The next step would now be to implement all the memories system in itself.

Update attachment

I finished implementing the sign up page, and also added better cleaner logic in my code.
I modified some CSS again, and also made a terms and conditions page and a page explaining password security. I mainly took the text from these two pages from my previous project, but did some better formatting in HTML and CSS.

I finished the log in page and its backend.
I reused part of the code from my previous project where I also had a log in page, but this time I used Django forms instead of pure HTML forms, I also changed a bit the logic to avoid repetitions, I had way too much in my previous project.
Also I spent some time on the CSS again to try and make the page appealing and visually pleasing, that was quite the challenge to make everything look aligned but I managed to do it using a grid layout.

Update attachment

For the last project, I basically didn't use CSS, so this time I'm making sure the web page looks somewhat pretty!
I wrote a basic index page in HTML, but I mainly spent some time on the CSS to make the page look better.
The layout and styling is pretty basic, but since I have little to no experience in CSS I'm really satisfied with it, I might adjust it later but for now I'll keep it like that and move on to coding the app in itself!

Update attachment

For now I made the basic Django project and app configuration, and I mainly spent some time making some drawings of what I want the interface to look like, so that I know exactly what to do when coding the project.

Update attachment