Skip to content

BlogySocial is a SOCIAL MEDIA/BLOG application crafted in Django (python), vanilla JavaScript and Bootstrap 5.3

Notifications You must be signed in to change notification settings

maxralph1/blogysocial

Repository files navigation

BlogySocial Blog and Social Media Application

Guides (usage and description) to the BlogySocial application.

Table of Contents

  1. What BlogySocial Is
  2. Technologies Utilized in Crafting BlogySocial
  3. Database Structure
  4. How to Install and Run the BlogySocial Application Locally On Your Device
  5. Log into the Application with existing User Credentials
  6. Footnotes !important

What Is BlogySocial?

BlogySocial is a blog/social media application where people can share knowledge and react to those knowledge shared.

Technologies Utilized in Crafting BlogySocial

BlogySocial is crafted in the following programming languages and frameworks:

  1. Django (Python)
    1. Django Test (for comprehensive test of the application)
    2. Coverage to determine more tests to be ran
    3. Selenium for client-side tests
  2. vanilla JavaScript
  3. Bootstrap 5.3
  4. vanilla CSS3

Database Structure

image for the database structure of BlogySocial

How to Install and Run the BlogySocial Application Locally On Your Device

  1. You must have Python3 downloaded and installed on your device. Follow the guidelines on the official Python website
  2. After installing Python3, download and install a text editor (e.g. VS Code) if you do not have one.

Then go to your terminal and follow these steps:

  1. cd (change directory) into the folder directory from your terminal and create a folder in your favorite directory on your computer manually or you may create one from there using the following commands like below;
cd C:\Users\maxim\Desktop>

Here I changed directory into my personal Desktop space on my windows Computer. And then;

mkdir blogysocial

Or whatever you wish to call the application

  1. cd into this newly created folder
cd blogysocial

and create a virtual environment

py -m venv venv
  1. Activate the newly created virtual environment so that you can install Django and other dependencies.
source venv/Scripts/activate

You may decide to skip this step (step 5), to install and run Django from the system-wide installation. But virtual environments are always recommended.

  1. Clone this repository from here on Github using either of the 2 commands on your terminal:
git clone https://github.com/maxralph1/blogysocial.git

or

git clone git@github.com:maxralph1/blogysocial.git
  1. Use the command below to install all dependencies I utilized in this application as can be seen from my requirements.txt file
pip install -r requirements.txt
  1. Now, cd into the "blogysocial" folder included from the cloned github repository and run the command below;
cd blogysocial

and

py manage.py runserver

Log into the Application with existing User Credentials

Use either of these credentials below to login to existing users in the database we already created.

On the other hand, if you intend to start afresh and know what you are doing, delete the database and run migrations afresh utilizing our existing database schema on this app's codebase.

For generic user:

Username: user
Password: 12345678

For admin:

Username: admin3
Password: 12345678

Footnotes !important

This application is strictly for demonstration purposes. It is not yet production-ready and should never be used as such.

**On the general pattern of coding, if you noticed, the entire application has a specific approach in structure. I however decided to deviate (bring in several flavors) a little (but paid attention not to deviate too much) from these principles so as to showcase my skills.I would stick to a particular pattern in a real-world application.

If you have any contributions/suggestions on how to improve this project, please share.