Skip to content

AndrGutierrez/djangoblog

Repository files navigation

Djangoblog (beta)

A blog system made in django

How to install

clone this repo, go to djangoblog folder and run:

python3 -m venv env
source env/bin/activate
pip install -r requirements.txt

Set env variables

I will declarate them like this in a .env file, these values may change depending on your database setup

DATABASE_USER=root
DATABASE_HOST=localhost
DATABASE_ROOT_PASSWORD=""
DATABASE_NAME=djangoblog
DATABASE_PORT=3066
SECRET_KEY="django-insecure-lj*ov0b$*ip@h5-8%&hhyni%=a_rw=j1hzohj3*vn@=%)!g2#+"
API_ROUTE="http://localhost:8001"
DEBUG=True

Setup frontend

Go to frontend folder

Set frontend env variables

The api route may change depending on where it is hosted, in development by default it is like this

API_ROUTE='http://localhost:8000'

Build frontend

npm i
npm run build

Run project

after this go to your root folder and run

python manage.py runserver

About

Blog system made with django and react

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published