Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 8 days ago
JSON representation
Simple and powerful blog written in django and react(currently not available)
- Host: GitHub
- URL: https://github.com/funnydman/blog
- Owner: funnydman
- Created: 2018-02-16T13:42:04.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T00:51:20.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T17:09:24.816Z (2 months ago)
- Topics: ansible, ansible-role, django, django-rest-framework, docker, react, react-router, travis
- Language: JavaScript
- Homepage: http://www.fancy-blog.tk/
- Size: 1010 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fancy blog
> Simple and powerful blog written in django and react![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 DEPLOYMENTCreate 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!