Skip to content

HarshitRV/HarshitRVBlogsite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HarshitRV Blogsite (Blogging web app)

Make sure to have python3 installed.

Running on locally.

  1. Create a virtual environment.
    python3 -m venv .venv
  1. Activate the virtual environment.
    source venv/bin/activate
  1. Create .env file
    touch .env
  1. Add following environment variable
    SECRET_KEY=your_secret_key
    DB_URI=sqlite:///site.db
  1. Install dependencies.
    pip install -r requirements.txt
  1. Uncomment the line at 98 in main.py, when running the server for first time for creating the database. (Important: Make sure to comment it again when its done, otherwise on every run new db will be created)

  2. Run the application.

    python3 main.py