An open API service indexing awesome lists of open source software.

https://github.com/sfinx13/django-craiglist

[WIP] Craigslist Redesign with Django and deployed to digital ocean via github action pipeline
https://github.com/sfinx13/django-craiglist

ci-cd continous-deployment continous-integration continuous-delivery digitalocean digitalocean-droplets django docker github-actions postgresql python

Last synced: about 2 months ago
JSON representation

[WIP] Craigslist Redesign with Django and deployed to digital ocean via github action pipeline

Awesome Lists containing this project

README

          

![Craiglist app CI/CD](https://github.com/sfinx13/django-craiglist/actions/workflows/main.yml/badge.svg)

# Craigslist Redesign - Django and deployed to digital ocean

The objective is to integrate the design proposed by Rabih Shasha with django framework

Feel free to read his case study post
[Craigslist Redesign — a UI/UX Case Study](https://medium.com/@rabihshasha/craigslist-redesign-case-study-ui-ux-a10f2f1a9a83).

![Homepage](_DOC/1-home.jpg)

## Installation

### Create ane activate virtual environment
```bash
$ make venv
$ source env/bin/activate
$ make setup
```
## Development

### Run locally
Run with django web server | Run with docker
:-------------------------:|:-------------------------:
```$ make up && make runsever``` | ```$ make up```

The development server : http://127.0.0.1:8000/

Admin panel: http://127.0.0.1:8000/admin

## Production
http://164.92.152.36/

## Usage

|Commands |Description |
|---------|-------------|
|make clean| Clean up the __pycache__ folder |
|make venv| Create virtual environnement |
|make setup| Install dependencies |
|make build| Restart containers |
|make up| Start container |
|make down| Shutdown container |
|make restart| Restart container |
|make app_db| Login inside database container |
|make app_web| Login inside database container |
|make runserver| Run django web server |
|make migration| Make migrations |
|make migrate| Apply migrations |
|make superuser| Create super user |
|make test| Run test |
|make lint | Lint |
|make ci | Run CI locally with act |
|make ssh | Connect to droplet ssh |
|make droplet-status | Get droplet status |
|make db-status | Get database status |
|make account | Get account digital ocean |