Git Product home page Git Product logo

realworld_django's Introduction

realworld django

实现类知乎的api接口约定和后端实现 , inspired by realworld

项目以cookiecutter-django 为脚手架,尽量遵循Django社区最佳实践

项目定位

API Server

依赖

  • Python3.5
  • docker
  • 基础服务:
    • postgres
    • redis
    • elasticsearch
    • rabbitmq

搭建开发环境

mac/linux

git clone https://github.com/wwj718/realworld_django
cd realworld_django
virtualenv env3 -p python3.5 # 推荐使用pyenv安装python3.5
source env3/bin/activate

# 安装依赖
pip install -r requirements/local.txt

# 运行基础服务
cd compose
docker-compose up

# 创建数据库
docker exec -u postgres compose_postgres_1 createdb realworld

# 创建迁移,新建超级用户
python manage.py migrate
python manage.py createsuperuser # realworld pass1912

# 运行
python manage.py runserver_plus

realworld_django's People

Contributors

wwj718 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.