personal blog site

This is my personal blog site where i post blogs or articles.

2
0
JavaScript

Personal Blog Site

This is a demo personal blogging site that was created to include in my portfolio.

myblog

Live Preview

Click Here

Local Preview

  1. Clone the repository

    git clone https://github.com/surajkarki66/personal-blog-site
    
  2. Create a python virtual environment

    python -m venv venv
    
  3. Activate the virtual environment

    source venv/bin/activate
    
  4. Install the requirements

    pip install -r "requirements.txt"
    
  5. Create a .env file in a project root directory and set all the environment variables based on the provided .env.sample example.

  6. Migrate the database

    python manage.py migrate
    
  7. Run the development server

    python manage.py runserver
    
  8. Preview: http://127.0.0.1:8000

Note: If you want to open the admin panel go to http://127.0.0.1:8000/admin, and make sure you have an admin account.
To create admin account run the following command.

   python manage.py createsuperuser

Happy Coding !!