You are browsing as a guest. Sign up (or log in) to start making projects!

2h 19m 30s logged

ACTUAL Devlog #1 | I managed to start it.

(Before going into this, I’d like to apologize for the last devlog and this one, I am still getting the hang of the best practices for stardance.)

So, I’ve managed to start my project. How? Well, I realized I need to slow down and focus, I grabbed a piece of paper from my printer and started writing down how Fero would work on a arrow diagram (I think that’s what it’s called.) And when I was staring at this piece of paper, It hit me, I should work on the project step by step (duhh.)

I’ve never really completed much of my projects, I’ve always rushed them so I don’t know how to make projects, but I really wanted to finish this one to prove to myself, I wasn’t lazy and I could do whatever I set my mind to.

Back to what I was saying, the first step of the project was device discovery and room creation. I worked on making an API service that could make random “room and share codes”. Room codes follow a 2 letter then 3 number system (example: AB-123) and the share codes are extremely long and are made using the secrets package on python. They sort of work as like a username and password. The room code is the username, can be public and can be used to verify if you are in the right room. The share code is like the password, it’s not public (should be private) and the server (local machine) checks if both matches on both devices (both session cookies), if it does then it would allow the receiver device to, well, receive. Although I haven’t worked on the discovery nor have I worked on the sharing part of the app, it’s still a major step in this project that I am proud of.

However, I realized I have made a big mistake, you see, session cookies are handled by flask, but it shouldn’t be that way because natively flask can’t do much management or filtering for sessions, it only does basic stuff. For that I need flask-session, so NOW i have to learn flask-session, what it can do and how to use it. And rewrite a big part of my code (though it’s only 75 lines at the moment so no big deal, I guess.)

Time to get back to work.

0
5

Comments 0

No comments yet. Be the first!