Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/funnydman/blog

Simple and powerful blog written in django and react(currently not available)
https://github.com/funnydman/blog

ansible ansible-role django django-rest-framework docker react react-router travis

Last synced: 18 days ago
JSON representation

Simple and powerful blog written in django and react(currently not available)

Awesome Lists containing this project

README

        

# fancy blog
> Simple and powerful blog written in django and react

djangoreact

![build status](https://travis-ci.org/FUNNYDMAN/blog.svg?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/FUNNYDMAN/blog/badge.svg?branch=master)](https://coveralls.io/github/FUNNYDMAN/blog?branch=master)
[![Requirements Status](https://requires.io/github/FUNNYDMAN/blog/requirements.svg?branch=master)](https://requires.io/github/FUNNYDMAN/blog/requirements/?branch=master)
## LOCAL DEPLOYMENT

Create and activate virtual environment

```bash
virtualenv --python=$(which python3) venv
source venv/bin/activate
```
Install packages with pipenv
```bash
pipenv install && pipenv shell
```

#### Create and configure database

Sign in as postgres user
```bash
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!