Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 1.46 KB

README.md

File metadata and controls

56 lines (45 loc) · 1.46 KB

fancy blog

Simple and powerful blog written in django and react

djangoreact

build status Coverage Status Requirements Status

LOCAL DEPLOYMENT

Create and activate virtual environment

virtualenv --python=$(which python3) venv
source venv/bin/activate

Install packages with pipenv

pipenv install && pipenv shell

Create and configure database

Sign in as postgres user

sudo -su postgres psql

Create db and user

CREATE DATABASE adminblog;
CREATE USER adminblog WITH password 'adminblog';
GRANT ALL ON DATABASE adminblog TO adminblog;

Allow user to create db for running django tests

ALTER USER adminblog CREATEDB;

DON'T use this credentials in production!

Set up django

Go to server directory and run:

python manage.py migrate
python manage.py runserver

Build client part

Go to client directory and run:

npm install && npm run start

Navigate to http://localhost:3000

Happy coding!