Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.22 KB

README.md

File metadata and controls

64 lines (44 loc) · 1.22 KB

Welcome to django-jobs - A fork of djobs 👋

🌨️ This repo illustrates how to port code from an older version of Django (1.5) to a more modern version (3.0). It's also a job board.

The GitHub Actions CI script is pretty shiny too.

🚩 Features

  • Django 3.0.9
  • click
  • Docker
  • Docker Compose
  • environs[django]
  • psycopg2-binary
  • whitenoise

💚 CI

  • black
  • django-test-plus
  • model-bakery
  • pytest
  • pytest-black
  • pytest-django

🔧 Install

# Clone the repo
$ git clone https://github.com/jefftriplett/django-jobs/

# Change directory
$ cd django-jobs

# Rename the sample.env file to .env
$ mv sample.env .env

Create a virtual environment

🚀 Usage

# Run Django in background mode
$ docker-compose up -d

# Run Migrations
$ docker-compose run --rm web python manage.py migrate

# Run the server on http://localhost:8000/
$ docker-compose run --rm web python manage.py runserver

# Stop all running containers
$ docker-compose down

# Run Tests
$ docker-compose run --rm web pytest

Show your support

Give a ⭐️ if this project helped you!