Online Note Taking App with full markdown and HTML support
MarcusWeinberger (585)

notes.marcusj.tech

A simple, clean, notepad in your browser! Full markdown support with instant rendering, side by side. Create multiple notes!

I need to fix the mobile view for the notes page but the demo page should be fine

You are viewing a single comment. View All
HahaYes (1219)

could you explain all of your imports in db.py?

MarcusWeinberger (585)

@HahaYes Sure, everything in db.py is purely to connect to Google Firebase. firebase_admin is needed to run the firebase_admin.initialize_app method. from firebase_admin import credentials is needed to create a credentials.Certificate instance, which has my client configuration and security keys, which is used to initialize the firebase app. firestore is to connect and interact with the firestore database.

MarcusWeinberger (585)

@HahaYes Whoops, forgot about cryptobaker, that's a library I made. I use it to make my hashing algorithms as you can see in DB.hash. The datetime, base64, json, and os modules are for decoding my configuration from my .env file (only visible to me), and generating timestamps for when notes were last edited

HahaYes (1219)

@MarcusWeinberger thanks for the detailed response!