Skip to content

channprj/devnews

Repository files navigation

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

Releases

No releases published

Packages

No packages published