Giter Site home page Giter Site logo

devnews's Introduction

Devnews

  • 한국 개발자들을 위한 뉴스/블로그/슬라이드/비디오 공유 사이트

Getting Started

Prerequisites

Installation

Add this in your ~/.direnvrc.

use_python() {
  local python_root=$HOME/.pyenv/versions/$1
  load_prefix "$python_root"
  layout_python "$python_root/bin/python"
}

Add eval "$(direnv hook zsh)" in your run commands.

echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc # or .bashrc

Setup requirements like below:

# Setup and activate virtual environments with pyenv and direnv
pyenv install 3.7.2
direnv allow

# Install packages
pip install -r requirements.txt

# Deploy mysql for dev
docker run --name devnews-db -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=devnews-db -e MYSQL_USER=devnews-user -e MYSQL_PASSWORD=devnews-password -d mariadb

# Optional: Connect db shell
mysql -h0 -udevnews-user -pdevnews-password devnews-db

# Optional: Change default admin theme - uswds
./manage.py loaddata admin_interface_theme_uswds.json

# Run in local
./manage.py runserver 0:8000

Deployment

Work in progress...

Built With

Contributing

Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

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.