неделя, 23 януари 2022 г.

[Tasks]Project Structure & Video Demo

 

Hey guys (and girls maybe, why not?), this is the second post dedicated to my project management system. After the quick overview I will dive deeper in the project structure aaaand I will also upload a video demonstrating Tasks' core functionalities.

1. Project files and folders

 Folder structure is represented on the printscreen below and shows all main folders:

неделя, 2 януари 2022 г.

[Tasks] Project Management App - Quick Overview

 

Flask
    Hey there, here's the most complex full-stack project I've built so far - as the name suggests this is a project management app programmed with Flask and Bootstrap 5.0 + some minor CSS tweaks. Please keep in mind this isn't a professionally built system but a learning project of a newbie who wants to learn Python, Flask and full stack web development. There are (probably) a lot of things to be optimized in my code and the front-end design could be much prettier, however, this could be used as a part of other people's projects and eventually help other learners like me. That's why I am sharing my project code, folders + files for free, everything can be downloaded from this Google Drive folder. In some of my next posts I will describe the entire project structure and will make a short video showing app's functionalities. If you're impatient and want to explore the system on your own - run dev.py and go to 127.0.0.1:5000 in your browser (assuming you already have Python/Flask/Flask-SQLAlchemy installed on your PC). 

неделя, 21 март 2021 г.

[FormBuilder]Survey programming with Flask and Bootstrap

 

Flask, Python

I have finally managed to complete this project and was surprised to find out there are not many tutorials on the web on how to program an online survey with Flask. So I guess this article might be useful or at least interesting to some Flask enthusiasts and professionals. The entire code of the project can be downloaded from here.

So, what is the core of the project? In fact, this is a very very simple and short survey displaying  the questions and their respective answer options from the questionnaire below:

събота, 28 март 2020 г.

[SnakeData] {create_template( ), run_script( ), cd( )}

    The functions in the article title are with relatively short syntax and that's why I decided to write a single article for all three of them instead of having one small article per function. So, let's begin!
    create_template(temp_name, var_list) - this function generates a csv file that contains desired list of variables to be extracted from csv data files in folder "data". temp_name argument should be replaced by the template file name (e.g. "all.csv") when calling the function. var_list needs to be replaced by a list of strings containing the names of all variables we need (e.g. ["q1","q2","q4"]). Syntax below:

четвъртък, 12 март 2020 г.

A pinch of bash

    The word "bash" may sound funnny in some languages (and especially in Bulgarian it is quite often used in the meaning of "exactly") but in the computer world it stands for "Bourne again shell". This is in fact the scripting language that contains all commands used in a Linux shell. Each command can be written separately in the console or multiple/a lot of commands can be collected in
one file which can be executed when needed, this is providing huuuuuuge potential for automating wide variety of tasks. As mentioned in this article I use bash scripting to automate my work in Python and now I will provide a simple example of how it works. Below is the full script I use at my FormBuilder project:

понеделник, 24 февруари 2020 г.

How to convert .py to .exe

    Have you ever wondered how to convert your .py file with code into independent program that can run when Python isn't installed on the PC/laptop? Well, there are a couple of ways to do that and my modest advise is to try all of them and decide which one fits your way of work best. Right now I will share the way I transform .py into .exe.

неделя, 23 февруари 2020 г.

[SnakeData]create_db()

    This functon was built to create new database node and has just one argument - the name of the database we aim to create /create_db(db_name)/. To call the function just type the desired db name in quotations in place of db_name argument:
python create_db() function
I am using the setup of this usecase to illustrate functionallity of create_db( ). Full code can be seen on the printscreen below.