Simple and powerful blog written in django and react
Create and activate virtual environment
virtualenv --python=$(which python3) venv
source venv/bin/activate
Install packages with pipenv
pipenv install && pipenv shell
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!
Go to server directory and run:
python manage.py migrate
python manage.py runserver
Go to client directory and run:
npm install && npm run start
Navigate to http://localhost:3000
Happy coding!